We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 611f4b5 commit 73f32c4Copy full SHA for 73f32c4
.github/workflows/missing-checksum.yml
@@ -14,9 +14,7 @@ jobs:
14
15
- name: Count number of Alpine Dockersfiles without CHECKSUM
16
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
+ 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
22
fi
0 commit comments