Skip to content

Commit 11aafa5

Browse files
committed
ci: run gha workflows for try, auto and master on the fork
1 parent 1ba762a commit 11aafa5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
TOOLSTATE_PUBLISH: 1
169169
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
170170
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
171-
if: "github.event_name == 'push' && github.ref == 'refs/heads/try'"
171+
if: "github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
172172
strategy:
173173
matrix:
174174
name:
@@ -301,7 +301,7 @@ jobs:
301301
TOOLSTATE_PUBLISH: 1
302302
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
303303
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
304-
if: "github.event_name == 'push' && github.ref == 'refs/heads/auto'"
304+
if: "github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
305305
strategy:
306306
matrix:
307307
name:
@@ -731,7 +731,7 @@ jobs:
731731
TOOLSTATE_PUBLISH: 1
732732
CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
733733
ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
734-
if: "github.event_name == 'push' && github.ref == 'refs/heads/master'"
734+
if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'"
735735
steps:
736736
- name: checkout the source code
737737
uses: actions/checkout@v1

src/ci/github-actions/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ jobs:
279279
name: try
280280
env:
281281
<<: [*shared-ci-variables, *prod-variables]
282-
if: github.event_name == 'push' && github.ref == 'refs/heads/try'
282+
if: github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'
283283
strategy:
284284
matrix:
285285
name:
@@ -299,7 +299,7 @@ jobs:
299299
name: auto
300300
env:
301301
<<: [*shared-ci-variables, *prod-variables]
302-
if: github.event_name == 'push' && github.ref == 'refs/heads/auto'
302+
if: github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'
303303
strategy:
304304
matrix:
305305
name:
@@ -677,7 +677,7 @@ jobs:
677677
runs-on: ubuntu-latest
678678
env:
679679
<<: [*prod-variables]
680-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
680+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'
681681
steps:
682682
- name: checkout the source code
683683
uses: actions/checkout@v1

0 commit comments

Comments
 (0)