File tree 1 file changed +10
-27
lines changed 1 file changed +10
-27
lines changed Original file line number Diff line number Diff line change 1
1
name : Rust
2
2
3
3
on :
4
- push :
5
- branches-ignore :
6
- - trying.tmp
7
- - staging.tmp
8
4
pull_request :
5
+ merge_group :
9
6
10
7
jobs :
11
8
miri :
@@ -90,28 +87,14 @@ jobs:
90
87
TARGET : x86_64-unknown-linux-gnu
91
88
run : sh ci/run.sh
92
89
93
- # These jobs doesn't actually test anything, but they're only used to tell
94
- # bors the build completed, as there is no practical way to detect when a
95
- # workflow is successful listening to webhooks only.
96
- #
97
- # ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
98
-
99
- end-success :
100
- name : bors build finished
101
- if : github.event.pusher.name == 'bors' && success()
102
- runs-on : ubuntu-latest
103
- needs : [miri, rustfmt_clippy, test, msrv]
104
-
105
- steps :
106
- - name : Mark the job as successful
107
- run : exit 0
108
-
109
- end-failure :
110
- name : bors build finished
111
- if : github.event.pusher.name == 'bors' && (failure() || cancelled())
90
+ conclusion :
91
+ needs : [test, msrv]
92
+ # !cancelled() executes the job regardless of whether the previous jobs passed, failed or get skipped.
93
+ if : ${{ !cancelled() }}
112
94
runs-on : ubuntu-latest
113
- needs : [miri, rustfmt_clippy, test, msrv]
114
-
115
95
steps :
116
- - name : Mark the job as a failure
117
- run : exit 1
96
+ - name : Conclusion
97
+ run : |
98
+ jq -C <<< '${{ toJson(needs) }}'
99
+ # Check if all needs were successful.
100
+ jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
You can’t perform that action at this time.
0 commit comments