Skip to content

Commit

Permalink
Update output readout
Browse files Browse the repository at this point in the history
  • Loading branch information
katjuell committed Oct 1, 2024
1 parent 7146081 commit 03538da
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/presubmit-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,11 @@ 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
cat "$("$file" has keywords that are not on allow list. Please update.)" > output_log.txt
echo "$file" has keywords that are not on allow list. Please update.
fi
done
- name: Set output variable
- name: Output results
shell: bash
id: set-output-var
id: output-results
run: |
echo "RESULT_OUPUT=$(cat output_log.txt)" >> $GITHUB_ENV
- name: Show output variable
shell: bash
id: show-output-var
run: |
echo "${{ env.RESULT_OUPUT }} < RESULT_OUPUT"
echo ${{ steps.verify-keywords.outputs.stdout }}

0 comments on commit 03538da

Please sign in to comment.