about summary refs log tree commit diff
path: root/.github/workflows
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2020-03-20 16:46:45 +0100
committerPietro Albini <pietro@pietroalbini.org>2020-03-24 15:36:12 +0100
commit11aafa5305656ca3190d099c1bb92b47e587cd0c (patch)
treed7188f4ee3631b30ef3af35f6a482fbb8f7855e3 /.github/workflows
parent1ba762a193f8db56f4229c6dd3b2a1f0df62170a (diff)
ci: run gha workflows for try, auto and master on the fork
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 275823e9dbc..6fea45a4c91 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -168,7 +168,7 @@ jobs:
       TOOLSTATE_PUBLISH: 1
       CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
       ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
-    if: "github.event_name == 'push' && github.ref == 'refs/heads/try'"
+    if: "github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
     strategy:
       matrix:
         name:
@@ -301,7 +301,7 @@ jobs:
       TOOLSTATE_PUBLISH: 1
       CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
       ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
-    if: "github.event_name == 'push' && github.ref == 'refs/heads/auto'"
+    if: "github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
     strategy:
       matrix:
         name:
@@ -731,7 +731,7 @@ jobs:
       TOOLSTATE_PUBLISH: 1
       CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
       ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
-    if: "github.event_name == 'push' && github.ref == 'refs/heads/master'"
+    if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'"
     steps:
       - name: checkout the source code
         uses: actions/checkout@v1