Skip to content

Commit 2739b6d

Browse files
committed
Improve and fix the success and failure bors job gates
1 parent f7bed34 commit 2739b6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- test
3737
- test_gitoxide
3838
runs-on: ubuntu-latest
39-
if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto-cargo'"
39+
if: "success() && github.event_name == 'push' && (github.ref == 'refs/heads/auto-cargo' || github.ref == 'refs/heads/try') && github.repository == 'rust-lang/cargo'"
4040
steps:
4141
- run: echo ok
4242
failure:
@@ -54,7 +54,7 @@ jobs:
5454
- test
5555
- test_gitoxide
5656
runs-on: ubuntu-latest
57-
if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto-cargo'"
57+
if: "!success() && github.event_name == 'push' && (github.ref == 'refs/heads/auto-cargo' || github.ref == 'refs/heads/try') && github.repository == 'rust-lang/cargo'"
5858
steps:
5959
- run: exit 1
6060

0 commit comments

Comments
 (0)