From abf787d64f1afec7f658343f10188369554bd5a6 Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Thu, 23 May 2024 13:09:51 -0400 Subject: [PATCH] Update build-distributions.yml --- .github/workflows/build-distributions.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-distributions.yml b/.github/workflows/build-distributions.yml index 94fb3b45b..052830540 100644 --- a/.github/workflows/build-distributions.yml +++ b/.github/workflows/build-distributions.yml @@ -56,10 +56,9 @@ jobs: steps: - name: Checkout code - if: ${{ !inputs.version }} uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: ${{ inputs.version && 1 || 0 }} - name: Set up QEMU if: matrix.job.emulation @@ -143,10 +142,9 @@ jobs: steps: - name: Checkout code - if: ${{ !inputs.version }} uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: ${{ inputs.version && 1 || 0 }} - name: Download distribution run: curl -LO ${{ env.DIST_URL }}/${{ env.DIST_VERSION }}/cpython-${{ env.DIST_PYTHON_VERSION }}+${{ env.DIST_VERSION }}-${{ matrix.job.target }}-install_only.tar.gz