From cbfb1c9132c6c61b4f530fcc8f31cdf0eb27f123 Mon Sep 17 00:00:00 2001 From: chaptersix <13949480+chaptersix@users.noreply.github.com> Date: Fri, 11 Sep 2026 18:01:49 -0500 Subject: [PATCH 1/2] ci: select explicit release tag --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af4d75851..1c7765ef9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,11 @@ name: Release on: workflow_dispatch: + inputs: + tag: + description: "Release tag to build" + required: true + type: string release: types: - published @@ -18,6 +23,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 + ref: ${{ github.event.release.tag_name || inputs.tag }} - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 @@ -53,6 +59,7 @@ jobs: args: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GORELEASER_CURRENT_TAG: ${{ github.event.release.tag_name || inputs.tag }} BUILD_DATE: ${{ steps.date.outputs.date }} BUILD_TS_UNIX: ${{ steps.timestamp.outputs.timestamp }} GIT_BRANCH: ${{ steps.branch.outputs.branch }} From c53d3c418761fc8a75c5bfdb156bfaa35e220e10 Mon Sep 17 00:00:00 2001 From: chaptersix <13949480+chaptersix@users.noreply.github.com> Date: Fri, 11 Sep 2026 18:50:38 -0500 Subject: [PATCH 2/2] ci: select explicit previous release tag --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c7765ef9..23e684282 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,10 @@ on: description: "Release tag to build" required: true type: string + previous_tag: + description: "Previous release tag" + required: true + type: string release: types: - published @@ -60,6 +64,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GORELEASER_CURRENT_TAG: ${{ github.event.release.tag_name || inputs.tag }} + GORELEASER_PREVIOUS_TAG: ${{ inputs.previous_tag }} BUILD_DATE: ${{ steps.date.outputs.date }} BUILD_TS_UNIX: ${{ steps.timestamp.outputs.timestamp }} GIT_BRANCH: ${{ steps.branch.outputs.branch }}