diff --git a/.github/workflows/conda_build.yml b/.github/workflows/conda_build.yml index 4813c09d..28fe8953 100644 --- a/.github/workflows/conda_build.yml +++ b/.github/workflows/conda_build.yml @@ -32,11 +32,6 @@ jobs: ANACONDA_OWNER: ${{ vars.ANACONDA_OWNER }} steps: - - name: Checkout pull request branch - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - id: latest-version name: Get latest version if: ${{ github.event.inputs.version == 'latest' }} @@ -55,6 +50,12 @@ jobs: fi echo "version=${version}" >> "$GITHUB_OUTPUT" + - name: Checkout branch + uses: actions/checkout@v6 + with: + ref: ${{ steps.set-version.outputs.version }} + fetch-depth: 0 + - name: Download release uses: robinraju/release-downloader@v1 with: