Skip to content

Commit

Permalink
Update .github/workflows/missing-checksum.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Mason Malone <[email protected]>
  • Loading branch information
nschonni and MasonM committed Oct 16, 2021
1 parent 611f4b5 commit 73f32c4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/missing-checksum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:

- name: Count number of Alpine Dockersfiles without CHECKSUM
run: |
if [ "$(find -path *alpine*/Dockerfile -exec grep -l CHECKSUM=\"\" {} \; | wc -l)" == 0 ]; then
exit 0
else
# echo "::error file=FILENAME,line=15,col=22::Missing pre-built checksum"
exit 1
git grep -n 'CHECKSUM=""' -- '*alpine*/Dockerfile' | sed -E 's/^([^:]+):([^:]+):\s*/::error file=\1,line=\2::Missing pre-built checksum/'
if [ "${PIPESTATUS[0]}" -eq 0 ]; then
exit 1
fi

0 comments on commit 73f32c4

Please sign in to comment.