File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments