Skip to content

Commit 6ed3dcc

Browse files
committed
Disable test workflow run by cron on forks
1 parent a85de91 commit 6ed3dcc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ env:
2323

2424
jobs:
2525
test:
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)