We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
success
1 parent 300edb3 commit cfe75caCopy full SHA for cfe75ca
.github/workflows/main.yml
@@ -71,3 +71,20 @@ jobs:
71
- name: Install Rust
72
run: rustup update nightly && rustup default nightly
73
- run: cargo bench --all
74
+
75
+ success:
76
+ needs:
77
+ - docker
78
+ - rustfmt
79
+ - wasm
80
+ - cb
81
+ - benchmarks
82
+ runs-on: ubuntu-latest
83
+ # GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
84
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
85
+ # dependencies fails.
86
+ if: always() # make sure this is never "skipped"
87
+ steps:
88
+ # Manually check the status of all dependencies. `if: failure()` does not work.
89
+ - name: check if any dependency failed
90
+ run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
0 commit comments