Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't fail if zarf.yaml not found in tag #322

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/test-flavor/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ runs:
git checkout "$TAG"

# Extract upgrade flavors and set output
echo "upgrade-flavors=$(cat zarf.yaml | yq '.components[] | select(.only | has("flavor")) | .only.flavor' | paste -s -d, -)" >> "$GITHUB_OUTPUT"
echo "upgrade-flavors=$(cat zarf.yaml | yq '.components[] | select(.only | has("flavor")) | .only.flavor' | paste -s -d, - || echo '')" >> "$GITHUB_OUTPUT"
shell: bash
2 changes: 1 addition & 1 deletion templates/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test:
git checkout "$TAG"

# Extract upgrade flavors and set UPGRADE_FLAVORS
UPGRADE_FLAVORS=$(cat zarf.yaml | yq '.components[] | select(.only | has("flavor")) | .only.flavor' | paste -s -d, -)
UPGRADE_FLAVORS=$(cat zarf.yaml | yq '.components[] | select(.only | has("flavor")) | .only.flavor' | paste -s -d, - || echo "")

# change back to the commit branch for the rest of the job
git checkout "$CI_COMMIT_BRANCH"
Expand Down
Loading