Skip to content

Commit d2471e0

Browse files
committed
Use --free-runners on GitHub forks
1 parent 3d10c05 commit d2471e0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ jobs:
182182
--labels "${STEPS_GET_LABELS_OUTPUTS_LABELS}" \
183183
--max-shards 2 \
184184
${{ (steps.check-pythonbuild.outputs.changed == 'true' || github.ref == 'refs/heads/main') && '--force-crate-build' || '' }} \
185+
${{ github.event.repository.fork && '--free-runners' || '' }} \
185186
> matrix.json
186187
187188
echo "python-build-matrix-0=$(jq -c '."python-build"["0"]' matrix.json)" >> $GITHUB_OUTPUT

.github/workflows/macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
--platform darwin \
9595
--labels "${STEPS_GET_LABELS_OUTPUTS_LABELS}" \
9696
${{ (steps.check-pythonbuild.outputs.changed == 'true' || github.ref == 'refs/heads/main') && '--force-crate-build' || '' }} \
97+
${{ github.event.repository.fork && '--free-runners' || '' }} \
9798
> matrix.json
9899
99100
# Extract python-build matrix

.github/workflows/windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
--platform windows \
9595
--labels "${STEPS_GET_LABELS_OUTPUTS_LABELS}" \
9696
${{ (steps.check-pythonbuild.outputs.changed == 'true' || github.ref == 'refs/heads/main') && '--force-crate-build' || '' }} \
97+
${{ github.event.repository.fork && '--free-runners' || '' }} \
9798
> matrix.json
9899
99100
# Extract python-build matrix

0 commit comments

Comments
 (0)