diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 50c54b95b..ad69312a5 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -86,6 +86,6 @@ jobs: if: always() runs-on: ubuntu-24.04 steps: - - if: contains(needs.*.result, 'canceled|failure') + - if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'failure') run: echo "At least one job has failed." && exit 1 - run: echo "Success!" diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index b41fbede5..a6b0ab195 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -53,6 +53,6 @@ jobs: if: always() runs-on: ubuntu-24.04 steps: - - if: contains(needs.*.result, 'canceled|failure') + - if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'failure') run: echo "At least one job has failed." && exit 1 - run: echo "Success!"