Skip to content

Commit

Permalink
No env context
Browse files Browse the repository at this point in the history
  • Loading branch information
katjuell committed Oct 1, 2024
1 parent 28a40c8 commit bfc6aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/presubmit-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
find ./images -name '*metadata.yaml' | while read -r file; do
if yq eval '.keywords[]' "$file" | grep -voE '(application|base|fips|ai|ai-gpu|stigs|featured)'; then
echo "$file" has keywords that are not on allow list. Please update.
echo "UPDATES_NEEDED='true'" >> $GITHUB_ENV
echo "UPDATES_NEEDED = true" >> $GITHUB_ENV
fi
done
- name: Output result
shell: bash
id: output-result
if: ${{ env.UPDATES_NEEDED == 'true' }}
if: ${{ UPDATES_NEEDED == true }}
run: |
echo "Please update your files"
exit 1

0 comments on commit bfc6aa7

Please sign in to comment.