ci(release): build the dispatched tag, not the dispatch ref
Some checks failed
ci / test (push) Failing after 21s

Without this a workflow_dispatch re-publish would have built main and
attached a binary whose --version did not match the release tag.
This commit is contained in:
Sirius DevOps 2026-09-10 13:12:39 -04:00
parent 91fd9601b8
commit e7c0b98a2b
No known key found for this signature in database

View file

@ -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: |