From fa7e95155b0332ba25bf02f004a6685f33d2b554 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Tue, 3 Dec 2024 18:44:13 -0800 Subject: [PATCH] ci: catch canceled jobs --- .github/workflows/analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 06a0565..52d9728 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -87,6 +87,6 @@ jobs: needs: [tests] # Restore trivy when/if fixed 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!"