File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -225,3 +225,20 @@ jobs:
225
225
- name : Install Rust
226
226
run : rustup update nightly && rustup default nightly
227
227
- run : ./ci/build-std-detect.sh
228
+
229
+ success :
230
+ needs :
231
+ - docs
232
+ - verify
233
+ - env_override
234
+ - test
235
+ - build-std-detect
236
+ runs-on : ubuntu-latest
237
+ # GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
238
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
239
+ # dependencies fails.
240
+ if : always() # make sure this is never "skipped"
241
+ steps :
242
+ # Manually check the status of all dependencies. `if: failure()` does not work.
243
+ - name : check if any dependency failed
244
+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
You can’t perform that action at this time.
0 commit comments