Skip to content

Commit 4bbb0f8

Browse files
committed
Fix Unrecognized named-value error
1 parent 242c22d commit 4bbb0f8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ on:
2020

2121
env:
2222
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' }}
2523

2624
jobs:
2725
test:
28-
if: ${{ env.RUN_CONDITION }}
26+
# Run scheduled jobs only on the main repository (disable cron on forks)
27+
if: ${{ github.repository_owner == 'fastapi' || github.event_name != 'schedule' }}
2928
strategy:
3029
matrix:
3130
os: [ ubuntu-latest, windows-latest, macos-latest ]
@@ -138,7 +137,7 @@ jobs:
138137

139138
# https://github.com/marketplace/actions/alls-green#why
140139
alls-green: # This job does nothing and is only used for the branch protection
141-
if: always() && env.RUN_CONDITION
140+
if: always() && (github.repository_owner == 'fastapi' || github.event_name != 'schedule')
142141
needs:
143142
- coverage-combine
144143
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)