Skip to content

Commit

Permalink
Merge pull request #73 from DeterminateSystems/fixup-empty-strings-fr…
Browse files Browse the repository at this point in the history
…om-env
  • Loading branch information
cole-h authored Aug 30, 2023
2 parents 3233157 + b089128 commit 9e7edd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,14 @@ impl NixfrPushCli {
mirror,
jwt_issuer_uri,
instrumentation: _,
mut extra_labels,
extra_labels,
spdx_expression,
extra_tags,
} = self;

let mut extra_labels: Vec<_> = extra_labels.into_iter().filter(|v| !v.is_empty()).collect();
let extra_tags: Vec<_> = extra_tags.into_iter().filter(|v| !v.is_empty()).collect();

let is_github_actions = std::env::var("GITHUB_ACTION").ok().is_some();
if !extra_tags.is_empty() {
let message = "`extra-tags` is deprecated and will be removed in the future. Please use `extra-labels` instead.";
Expand Down

0 comments on commit 9e7edd8

Please sign in to comment.