diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 73f4fe8e4b..e3d99f0583 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -385,6 +385,7 @@ jobs: pr: name: PR + if: always() runs-on: ubuntu-latest needs: - js @@ -398,5 +399,10 @@ jobs: - publish-dry-run - test-links steps: + - name: Check for failures or cancellations + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} + run: | + echo "One or more required jobs failed or were cancelled." + exit 1 - name: All required jobs passed - run: echo "All required jobs completed." + run: echo "All required jobs completed successfully."