From 199bf27de19c007586eb62dd5ec807c6cd84abd3 Mon Sep 17 00:00:00 2001 From: Gavin Ying Date: Sat, 14 Nov 2026 11:15:20 +0800 Subject: [PATCH] fix(ci): rebuild a republished modpoll image from its release tag A push to v2 that changed modpoll-release.yml rebuilt modpoll:2.0.0a11-r1 from the branch head, which already carried unreleased code. The image job now checks out the release tag in both paths. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/modpoll-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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