Skip to content

Commit 7873968

Browse files
authored
Merge pull request #1877 from stackhpc/ci-fix-push-fail
CI: Fix job step condition
2 parents a4c43ed + bc2f54e commit 7873968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ jobs:
325325

326326
- name: Fail when images failed to push
327327
run: if [ $(wc -l < image-build-logs/push-failed-images.txt) -gt 0 ]; then cat image-build-logs/push-failed-images.txt && exit 1; fi
328-
if: ${{ !cancelled() }}
328+
if: ${{ inputs.push && !cancelled() }}
329329

330330
# NOTE(seunghun1ee): Currently we want to mark the job fail only when critical CVEs are detected.
331331
# This can be used again instead of "Fail when critical vulnerabilities are found" when it's

0 commit comments

Comments
 (0)