Skip to content

Commit caba50d

Browse files
authored
Merge pull request #10577 from tegonal/no-schedule-on-forks
don't run schedule on forks
2 parents aefe56e + 700b4f6 commit caba50d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
1919
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
2020
- ${{ github.workspace }}/../../cache/general:/root/.cache
21-
if: "github.event_name == 'schedule'
21+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
2222
|| (
2323
github.event_name == 'push'
2424
&& !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
@@ -57,7 +57,7 @@ jobs:
5757
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
5858
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
5959
- ${{ github.workspace }}/../../cache/general:/root/.cache
60-
if: "github.event_name == 'schedule'
60+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
6161
|| (
6262
github.event_name == 'push'
6363
&& !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
@@ -115,7 +115,7 @@ jobs:
115115

116116
test_windows_full:
117117
runs-on: [self-hosted, Windows]
118-
if: "github.event_name == 'schedule'
118+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
119119
|| (
120120
github.event_name == 'push'
121121
&& !startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
@@ -141,7 +141,7 @@ jobs:
141141
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
142142
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
143143
- ${{ github.workspace }}/../../cache/general:/root/.cache
144-
if: "github.event_name == 'schedule'
144+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
145145
|| github.event_name == 'push'
146146
|| (
147147
github.event_name == 'pull_request'
@@ -176,7 +176,7 @@ jobs:
176176
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
177177
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
178178
- ${{ github.workspace }}/../../cache/general:/root/.cache
179-
if: "github.event_name == 'schedule'
179+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
180180
|| github.event_name == 'push'
181181
|| (
182182
github.event_name == 'pull_request'
@@ -211,7 +211,7 @@ jobs:
211211
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
212212
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
213213
- ${{ github.workspace }}/../../cache/general:/root/.cache
214-
if: "github.event_name == 'schedule'
214+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
215215
|| (
216216
github.event_name == 'push'
217217
&& startsWith(github.event.ref, 'refs/tags/')
@@ -247,7 +247,7 @@ jobs:
247247
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
248248
- ${{ github.workspace }}/../../cache/general:/root/.cache
249249

250-
if: "github.event_name == 'schedule'
250+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
251251
|| (
252252
github.event_name == 'push'
253253
&& startsWith(github.event.ref, 'refs/tags/')
@@ -289,7 +289,7 @@ jobs:
289289
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
290290
- ${{ github.workspace }}/../../cache/general:/root/.cache
291291
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, test_sbt, test_java8]
292-
if: "github.event_name == 'schedule'"
292+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'"
293293
env:
294294
NIGHTLYBUILD: yes
295295
PGP_PW: ${{ secrets.PGP_PW }} # PGP passphrase
@@ -323,7 +323,7 @@ jobs:
323323
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
324324
- ${{ github.workspace }}/../../cache/general:/root/.cache
325325
needs: [publish_nightly]
326-
if: "github.event_name == 'schedule'"
326+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'"
327327
env:
328328
NIGHTLYBUILD: yes
329329
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} # If you need to change this:

0 commit comments

Comments
 (0)