From 985d01864ed80138c05820be0a6b50ec488dd90f Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Sat, 19 Oct 2024 20:43:23 +0200 Subject: [PATCH] Update containers.build.yaml Signed-off-by: Kjeld Schouten --- .github/workflows/containers.build.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/containers.build.yaml b/.github/workflows/containers.build.yaml index 4016dfd0c0e5..6342e62de429 100644 --- a/.github/workflows/containers.build.yaml +++ b/.github/workflows/containers.build.yaml @@ -355,9 +355,8 @@ jobs: steps: - name: Check Results run: | - if [[ "${{ needs.changes.result }}" != "success" || \ - "${{ needs.hadolint.result }}" != "success" || \ - "${{ needs.build.result }}" != "success" ]]; then + if [[ "${{ needs.changes.outputs.containers_found }}" == 'true' && ( "${{ needs.hadolint.result }}" != "success" || \ + "${{ needs.build.result }}" != "success") ]]; then echo "One or more jobs failed!" exit 1 else