Skip to content

Commit 73f32c4

Browse files
nschonniMasonM
andcommitted
Update .github/workflows/missing-checksum.yml
Co-authored-by: Mason Malone <[email protected]>
1 parent 611f4b5 commit 73f32c4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/missing-checksum.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414

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

0 commit comments

Comments
 (0)