Skip to content

Commit 1eb4f13

Browse files
committed
another merge queue setup attempt
1 parent 1053e42 commit 1eb4f13

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@ jobs:
6060
name: Success
6161
runs-on: ubuntu-latest
6262
needs: [test-core, test-alloc, test-std, test-simd, test-stdarch]
63+
# Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
64+
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
65+
# dependencies fails.
66+
if: always() # make sure this is never "skipped"
6367
steps:
64-
- name: mark the job as a success
65-
run: exit 0
68+
- name: fail if any dependency failed
69+
run: exit 1
70+
if: failure()
6671

6772
# Send a Zulip notification when a cron job fails
6873
cron-fail-notify:

0 commit comments

Comments
 (0)