From 0ea214534a812a16b207c438ac9135aa9da0659a Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Tue, 3 Dec 2024 23:32:21 -0800 Subject: [PATCH] ci(fix): catch canceled jobs (#522) --- .github/workflows/analysis.yml | 2 +- .github/workflows/pr-open.yml | 2 +- .github/workflows/pr-validate.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 846f9f89..d0d15984 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -113,7 +113,7 @@ jobs: # View results echo "needs.*.result: ${{ toJson(needs.*.result) }}" - - if: contains(needs.*.result, 'canceled|failure') + - if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled') run: | # Job failure found echo "At least one job has failed" diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 4acba71b..f9e13481 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -49,7 +49,7 @@ jobs: # View results echo "needs.*.result: ${{ toJson(needs.*.result) }}" - - if: contains(needs.*.result, 'canceled|failure') + - if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled') run: | # Job failure found echo "At least one job has failed" diff --git a/.github/workflows/pr-validate.yml b/.github/workflows/pr-validate.yml index 2ea628d3..353f8a38 100644 --- a/.github/workflows/pr-validate.yml +++ b/.github/workflows/pr-validate.yml @@ -38,7 +38,7 @@ jobs: # View results echo "needs.*.result: ${{ toJson(needs.*.result) }}" - - if: contains(needs.*.result, 'canceled|failure') + - if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled') run: | # Job failure found echo "At least one job has failed"