diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index a342ee3..bc7d3b7 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -132,6 +132,6 @@ jobs: if: always() runs-on: ubuntu-24.04 steps: - - if: contains(needs.*.result, 'canceled|failure') + - if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled') 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 0f5dfb8..4d61e17 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -62,6 +62,6 @@ jobs: if: always() runs-on: ubuntu-24.04 steps: - - if: contains(needs.*.result, 'canceled|failure') + - if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled') run: echo "At least one job has failed." && exit 1 - run: echo "Success!"