Skip to content

Commit 51bf5bf

Browse files
authored
ci: disable scheduled workflow jobs in forked repositories (#446)
1 parent 359d5fd commit 51bf5bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defaults:
2222
jobs:
2323
main:
2424
name: Main
25+
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
2526
timeout-minutes: 15
2627
runs-on: ubuntu-latest
2728
strategy:
@@ -82,6 +83,7 @@ jobs:
8283
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
8384
nat-ted-env:
8485
name: NAT-ted Environments
86+
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
8587
timeout-minutes: 5
8688
runs-on: ubuntu-latest
8789
env:
@@ -140,6 +142,7 @@ jobs:
140142
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
141143
lint:
142144
name: Lint
145+
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
143146
timeout-minutes: 5
144147
runs-on: ubuntu-latest
145148
steps:
@@ -154,6 +157,7 @@ jobs:
154157
run: bundle exec rubocop
155158
benchmark:
156159
name: Benchmark
160+
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
157161
timeout-minutes: 10
158162
runs-on: ubuntu-latest
159163
env:
@@ -214,6 +218,7 @@ jobs:
214218
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
215219
ips:
216220
name: IPS
221+
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
217222
timeout-minutes: 10
218223
runs-on: ubuntu-latest
219224
env:
@@ -246,6 +251,7 @@ jobs:
246251
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
247252
profiling:
248253
name: Profiling
254+
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
249255
timeout-minutes: 5
250256
runs-on: ubuntu-latest
251257
strategy:
@@ -284,6 +290,7 @@ jobs:
284290
run: docker compose --progress quiet -f $DOCKER_COMPOSE_FILE down || true
285291
massive:
286292
name: Massive Cluster
293+
if: github.event_name != 'schedule' || github.repository == 'redis-rb/redis-cluster-client'
287294
timeout-minutes: 10
288295
runs-on: ubuntu-latest
289296
env:

0 commit comments

Comments
 (0)