diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 333405c..75cd9eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,12 +49,14 @@ jobs: if: ${{ github.event_name == 'pull_request' }} run: | echo fetching pull/${{ github.ref_name }} - git fetch origin pull/${{ github.ref_name }}:tmp --depth=1 + git fetch origin pull/${{ github.ref_name }}:pr --depth=1 + git checkout pr - name: checkout branch if: ${{ github.event_name == 'push' }} run: | echo fetching ${{ github.ref_name }} - git fetch origin ${{ github.ref_name }}:tmp --depth=1 + git fetch origin ${{ github.ref_name }} --depth=1 + git checkout ${{ github.ref_name }} - name: Set up Go uses: actions/setup-go@v5 with: