We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a85de91 commit ade5d6eCopy full SHA for ade5d6e
.github/workflows/test.yml
@@ -20,9 +20,12 @@ on:
20
21
env:
22
UV_SYSTEM_PYTHON: 1
23
+ # Run scheduled jobs only on the main repository (disable cron on forks)
24
+ RUN_CONDITION: ${{ github.repository_owner == 'fastapi' || github.event_name != 'schedule' }}
25
26
jobs:
27
test:
28
+ if: ${{ env.RUN_CONDITION }}
29
strategy:
30
matrix:
31
os: [ ubuntu-latest, windows-latest, macos-latest ]
@@ -135,7 +138,7 @@ jobs:
135
138
136
139
# https://github.com/marketplace/actions/alls-green#why
137
140
alls-green: # This job does nothing and is only used for the branch protection
- if: always()
141
+ if: always() && env.RUN_CONDITION
142
needs:
143
- coverage-combine
144
runs-on: ubuntu-latest
0 commit comments