Skip to content

Commit 0ee3217

Browse files
committed
Port to the root
1 parent a9aaa10 commit 0ee3217

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ jobs:
100100
runs-on: ubuntu-24.04
101101
# Keep this aligned with the below steps
102102
needs: [lint, test]
103-
if: always() # Ensure it runs even if "needs" fail
103+
if: always() # Ensure it runs even if "needs" fails or is cancelled
104104
steps:
105105
# Keep this aligned with the above needs
106106
- name: Check for failed jobs
107107
run: |
108-
if [[ "${{ needs.lint.result }}" == "failure" ||
109-
"${{ needs.test.result }}" == "failure" ]]; then
110-
echo "One or more required jobs failed. Marking finalizer as failed."
108+
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ||
109+
"${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
110+
echo "One or more required jobs failed or was cancelled. Marking finalizer as failed."
111111
exit 1
112112
fi
113113
- name: Finalize

0 commit comments

Comments
 (0)