diff --git a/.github/workflows/containers.build.yaml b/.github/workflows/containers.build.yaml index 4016dfd0c0e50..6342e62de429e 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