Skip to content

Commit

Permalink
fix(deploy): properly detect when pkg names is ""
Browse files Browse the repository at this point in the history
empty strings evaluate to true, so this was falsely using
empty strings for package names
  • Loading branch information
kylemellander committed Jan 13, 2025
1 parent dbd08d6 commit 0866df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def run_for_packages
end

def package_names
return ENV["PACKAGE_NAMES"].split(",") if ENV["PACKAGE_NAMES"]
return ENV["PACKAGE_NAMES"].split(",") unless ENV["PACKAGE_NAMES"]&.empty?

[ENV["PACKAGE_NAME"]]
end
Expand Down

0 comments on commit 0866df7

Please sign in to comment.