From 3c6f1b681c8255b504b5d41e13b9706ae0e5b380 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Tue, 3 Dec 2024 23:43:15 -0800 Subject: [PATCH] ci(fix): catch canceled in results job (#276) --- .github/workflows/analysis.yml | 2 +- .github/workflows/pr-open.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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!"