From fd4f576980e7c7e46f1544440a1a470684345646 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Tue, 10 Sep 2024 17:03:28 -0700 Subject: [PATCH] fix(ci): improve PR results checks (#172) --- .github/workflows/pr-open.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index bbc3e1f..c89444a 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -60,7 +60,10 @@ jobs: results: name: PR Results - needs: [deploys] + needs: [builds, deploys] + if: always() runs-on: ubuntu-22.04 steps: - - run: echo "Workflow completed successfully!" + - if: contains(needs.*.result, 'failure') + run: echo "At least one job has failed." && exit 1 + - run: echo "Success!"