Skip to content

Commit f569754

Browse files
YuriiMotovsvlandeg
andauthored
👷 Disable test workflow run by cron on forks (#1611)
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
1 parent 5ce1a47 commit f569754

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ env:
2323
jobs:
2424
test:
2525
name: Test (${{ matrix.os }}, Python ${{ matrix.python-version }}, ${{ matrix.uv-resolution }}, ${{ matrix.database || 'sqlite' }})
26+
# Run scheduled jobs only on the main repository (disable cron on forks)
27+
if: ${{ github.repository_owner == 'fastapi' || github.event_name != 'schedule' }}
2628
strategy:
2729
matrix:
2830
os: [ ubuntu-latest, windows-latest, macos-latest ]

0 commit comments

Comments
 (0)