diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a6cf6848cf..92fdc7e71f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -92,5 +92,5 @@ jobs: runs-on: ubuntu-latest steps: - name: fail if conditional jobs failed - if: contains(fromJSON('["failure", "skipped", "cancelled"]'), needs.*.result) + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled') run: exit 1