From 64e75239eb1b69f02b365e271b442a5e94af5128 Mon Sep 17 00:00:00 2001 From: Andy Waite <13400+andyw8@users.noreply.github.com> Date: Tue, 11 Feb 2025 18:44:54 -0500 Subject: [PATCH] Disable schedule jobs for forks --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 415cffa38..723569e6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,7 @@ jobs: engine: cruby min_version: 2.7 lint: + if: github.repository == 'ruby/irb' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -24,6 +25,7 @@ jobs: - name: Run rubocop run: bundle exec rubocop irb: + if: github.repository == 'ruby/irb' needs: ruby-versions name: rake test ${{ matrix.ruby }} ${{ matrix.with_latest_reline && '(latest reline)' || '' }} strategy: @@ -49,6 +51,7 @@ jobs: - name: Run tests in isolation run: bundle exec rake test_in_isolation debug-test: + if: github.repository == 'ruby/irb' name: Debug compatibility test runs-on: ubuntu-latest timeout-minutes: 30 @@ -72,6 +75,7 @@ jobs: bundle install bundle exec rake vterm-yamatanooroti: + if: github.repository == 'ruby/irb' needs: ruby-versions name: >- vterm-yamatanooroti ${{ matrix.ruby }} ${{ matrix.with_latest_reline && '(latest reline)' || '' }}