Skip to content

Commit 421c28f

Browse files
authored
Disable schedule jobs for forks (#1084)
1 parent a05231f commit 421c28f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ on:
88

99
jobs:
1010
ruby-versions:
11+
if: github.repository == 'ruby/irb' || github.event_name != 'schedule'
1112
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
1213
with:
1314
engine: cruby
1415
min_version: 2.7
1516
lint:
17+
if: github.repository == 'ruby/irb' || github.event_name != 'schedule'
1618
runs-on: ubuntu-latest
1719
steps:
1820
- uses: actions/checkout@v4
@@ -49,6 +51,7 @@ jobs:
4951
- name: Run tests in isolation
5052
run: bundle exec rake test_in_isolation
5153
debug-test:
54+
if: github.repository == 'ruby/irb' || github.event_name != 'schedule'
5255
name: Debug compatibility test
5356
runs-on: ubuntu-latest
5457
timeout-minutes: 30

0 commit comments

Comments
 (0)