diff --git a/.github/workflows/modpoll-release.yml b/.github/workflows/modpoll-release.yml index f556252..7adc815 100644 --- a/.github/workflows/modpoll-release.yml +++ b/.github/workflows/modpoll-release.yml @@ -101,9 +101,11 @@ jobs: if: ${{ !cancelled() && needs.candidate.result == 'success' && (needs.publish.result == 'success' || (github.ref_name == 'v2' && needs.publish.result == 'skipped')) }} runs-on: ubuntu-latest steps: + # Build the released source: a push to v2 that changes this file republishes the current + # version's image, and the branch head may already carry unreleased code. - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: - ref: ${{ github.ref }} + ref: ${{ needs.candidate.outputs.git-tag }} - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3