Skip to content

Commit dbdc127

Browse files
committed
Auto merge of #1576 - RalfJung:gha, r=RalfJung
add bors notification jobs There are probably ways to simplify this... I just copied this from the Rust repo and expanded the anchors and adjusted the `needs` thing. Hopefully this unblocks Miri PR landing.
2 parents 95f0ad1 + c3a1225 commit dbdc127

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,25 @@ jobs:
3333
host_target: i686-pc-windows-msvc
3434
steps:
3535
- uses: actions/checkout@v2
36+
37+
# These jobs doesn't actually test anything, but they're only used to tell
38+
# bors the build completed, as there is no practical way to detect when a
39+
# workflow is successful listening to webhooks only.
40+
#
41+
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
42+
end-success:
43+
name: bors build finished
44+
runs-on: ubuntu-latest
45+
needs: [build]
46+
if: github.event.pusher.name == 'bors' && success()
47+
steps:
48+
- name: mark the job as a success
49+
run: exit 0
50+
end-failure:
51+
name: bors build finished
52+
runs-on: ubuntu-latest
53+
needs: [build]
54+
if: github.event.pusher.name == 'bors' && (failure() || cancelled())
55+
steps:
56+
- name: mark the job as a failure
57+
run: exit 1

0 commit comments

Comments
 (0)