Skip to content

Commit abf787d

Browse files
committed
Update build-distributions.yml
1 parent 168e8b8 commit abf787d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build-distributions.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ jobs:
5656

5757
steps:
5858
- name: Checkout code
59-
if: ${{ !inputs.version }}
6059
uses: actions/checkout@v4
6160
with:
62-
fetch-depth: 0
61+
fetch-depth: ${{ inputs.version && 1 || 0 }}
6362

6463
- name: Set up QEMU
6564
if: matrix.job.emulation
@@ -143,10 +142,9 @@ jobs:
143142

144143
steps:
145144
- name: Checkout code
146-
if: ${{ !inputs.version }}
147145
uses: actions/checkout@v4
148146
with:
149-
fetch-depth: 0
147+
fetch-depth: ${{ inputs.version && 1 || 0 }}
150148

151149
- name: Download distribution
152150
run: curl -LO ${{ env.DIST_URL }}/${{ env.DIST_VERSION }}/cpython-${{ env.DIST_PYTHON_VERSION }}+${{ env.DIST_VERSION }}-${{ matrix.job.target }}-install_only.tar.gz

0 commit comments

Comments
 (0)