Skip to content

Commit 1b695ed

Browse files
committed
1 parent fb0c522 commit 1b695ed

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,30 @@ jobs:
190190

191191
- name: Prune unnecessary cache
192192
run: script/ci/prune-cache.sh
193+
194+
195+
# These jobs doesn't actually test anything, but they're only used to tell
196+
# bors the build completed, as there is no practical way to detect when a
197+
# workflow is successful listening to webhooks only.
198+
#
199+
# ALL THE PREVIOUS JOBS NEEDS TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
200+
201+
end-success:
202+
name: bors build finished
203+
if: success()
204+
runs-on: ubuntu-latest
205+
needs: [frontend, backend]
206+
207+
steps:
208+
- name: Mark the job as successful
209+
run: exit 0
210+
211+
end-failure:
212+
name: bors build finished
213+
if: "!success()"
214+
runs-on: ubuntu-latest
215+
needs: [frontend, backend]
216+
217+
steps:
218+
- name: Mark the job as a failure
219+
run: exit 1

0 commit comments

Comments
 (0)