File tree Expand file tree Collapse file tree 2 files changed +31
-7
lines changed Expand file tree Collapse file tree 2 files changed +31
-7
lines changed Original file line number Diff line number Diff line change 1
- status = [
2
- " test (ubuntu-latest, stable)" ,
3
- " test (macos-latest, stable)" ,
4
- " test (windows-latest, stable)" ,
5
- " rustfmt" ,
6
- " clippy" ,
7
- ]
1
+ status = [" bors build finished" ]
8
2
delete_merged_branches = true
Original file line number Diff line number Diff line change 70
70
with :
71
71
command : clippy
72
72
args : --all --lib --tests -- --deny warnings
73
+
74
+ # These jobs doesn't actually test anything, but they're only used to tell
75
+ # bors the build completed, as there is no practical way to detect when a
76
+ # workflow is successful listening to webhooks only.
77
+ #
78
+ # ALL THE PREVIOUS JOBS NEEDS TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
79
+
80
+ end-success :
81
+ name : bors build finished
82
+ if : success()
83
+ runs-on : ubuntu-latest
84
+ needs :
85
+ - test
86
+ - fmt
87
+ - clippy
88
+ steps :
89
+ - name : Mark the job as successful
90
+ run : exit 0
91
+
92
+ end-failure :
93
+ name : bors build finished
94
+ if : " !success()"
95
+ runs-on : ubuntu-latest
96
+ needs :
97
+ - test
98
+ - fmt
99
+ - clippy
100
+ steps :
101
+ - name : Mark the job as a failure
102
+ run : exit 1
You can’t perform that action at this time.
0 commit comments