diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml index 6437381f..82432e10 100644 --- a/.github/workflows/release-windows.yml +++ b/.github/workflows/release-windows.yml @@ -4,6 +4,12 @@ on: # yamllint disable-line rule:truthy push: tags: - "v[0-9]+.[0-9]+.[0-9]+" + workflow_dispatch: + inputs: + tag: + description: "Existing tag to release (e.g. v1.2.3)" + required: true + type: "string" permissions: contents: "write" packages: "write" @@ -14,6 +20,7 @@ jobs: - uses: "actions/checkout@v6" with: fetch-depth: 0 + ref: "${{ inputs.tag || github.ref }}" - uses: "authzed/actions/setup-go@main" - uses: "nowsprinting/check-version-format-action@v5" id: "version" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5d3ccf62..17c6beca 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,12 @@ on: push: tags: - "v[0-9]+.[0-9]+.[0-9]+" + workflow_dispatch: + inputs: + tag: + description: "Existing tag to release (e.g. v1.2.3)" + required: true + type: "string" jobs: github: @@ -12,6 +18,7 @@ jobs: - uses: "actions/checkout@v6" with: fetch-depth: 0 + ref: "${{ inputs.tag || github.ref }}" - name: "Install cross-compilers" run: | brew tap messense/macos-cross-toolchains @@ -53,6 +60,7 @@ jobs: - uses: "actions/checkout@v6" with: fetch-depth: 0 + ref: "${{ inputs.tag || github.ref }}" - uses: "authzed/actions/docker-login@main" with: quayio_token: "${{ secrets.QUAYIO_PASSWORD }}"