Skip to content

Commit

Permalink
Output results
Browse files Browse the repository at this point in the history
  • Loading branch information
katjuell committed Oct 1, 2024
1 parent 66599a6 commit 7764707
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/presubmit-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ jobs:
set +o pipefail
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.
cat "$file" has keywords that are not on allow list. Please update. >> output_log.txt
fi
done
echo '::endgroup::'
- name: Output results
shell: bash
id: output-results
run: |
if [ -s output_log.txt ]; then
cat output_log.txt
exit 1
fi

0 comments on commit 7764707

Please sign in to comment.