File tree Expand file tree Collapse file tree 1 file changed +10
-23
lines changed Expand file tree Collapse file tree 1 file changed +10
-23
lines changed Original file line number Diff line number Diff line change 11name : CI
22on :
3- push :
4- branches :
5- - master
6- - auto
7- - try
3+ merge_group :
84 pull_request :
9- branches :
10- - " **"
115
126jobs :
137 test :
@@ -111,22 +105,15 @@ jobs:
111105 - name : Build Chalk book
112106 run : cd book && ./mdbook build
113107
114- end-success :
115- name : bors build finished
116- if : success()
117- runs-on : ubuntu-latest
108+ conclusion :
118109 needs : [test, fmt]
119-
120- steps :
121- - name : Mark the job as successful
122- run : exit 0
123-
124- end-failure :
125- name : bors build finished
126- if : " !success()"
110+ # !cancelled() executes the job regardless of whether the previous jobs passed, failed or get skipped.
111+ if : ${{ !cancelled() }}
127112 runs-on : ubuntu-latest
128- needs : [test, fmt]
129-
130113 steps :
131- - name : Mark the job as a failure
132- run : exit 1
114+ - name : Conclusion
115+ run : |
116+ # Print the dependent jobs to see them in the CI log
117+ jq -C <<< '${{ toJson(needs) }}'
118+ # Check if all jobs that we depend on (in the needs array) were successful.
119+ jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
You can’t perform that action at this time.
0 commit comments