Skip to content

Commit f75fd94

Browse files
committed
Pass the job if no warnings
1 parent ec63cc3 commit f75fd94

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

script.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ for docker_file in "${docker_files[@]}" ; do
5555
echo "::group:: result of build --check"
5656
echo "$check_result"
5757
echo "::endgroups::"
58+
if [[ -z "$(echo "$check_result" | jq '.warnings // empty')" ]]; then
59+
echo "No warnings found in ${docker_file}"
60+
continue
61+
fi
5862
echo "$check_result" | jq "$docker_build_jq" \
5963
| reviewdog -f=rdjson -name="docker-build-check" \
6064
-reporter="${INPUT_REPORTER}" \
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM alpine

0 commit comments

Comments
 (0)