From 65cfba67fdb1e87727a21a5602ada7a288ce51b7 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Tue, 3 Dec 2024 14:10:01 -0800 Subject: [PATCH] ci: catch canceled in results job --- .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 1ed27819..80e3cd4c 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, 'failure') + - if: contains(needs.*.result, 'canceled|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 df5fc740..0f5dfb8b 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, 'failure') + - if: contains(needs.*.result, 'canceled|failure') run: echo "At least one job has failed." && exit 1 - run: echo "Success!"