From e7c0b98a2b20ee5478a675df4b554c6a6827e215 Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Thu, 10 Sep 2026 13:12:39 -0400 Subject: [PATCH] ci(release): build the dispatched tag, not the dispatch ref Without this a workflow_dispatch re-publish would have built main and attached a binary whose --version did not match the release tag. --- .forgejo/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index cc9d431..90d70ed 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -31,6 +31,11 @@ jobs: steps: - name: Checkout uses: https://code.forgejo.org/actions/checkout@v4 + with: + # A tag push builds that tag; a manual dispatch builds the tag the + # caller named (otherwise the binary version would not match the + # release it is attached to). + ref: ${{ github.event.inputs.tag || github.ref_name }} - name: Build ${{ env.TARGET }} in a rust container run: |