From 0a86ca396bafcd4e974b063915bbfad2dfd65d1d Mon Sep 17 00:00:00 2001 From: abelanger5 Date: Tue, 11 Jun 2024 10:42:13 -0400 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e10c23fd5..8dd22d431 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,11 @@ on: release: types: [released] + workflow_dispatch: + inputs: + tag: + description: 'Tag to use for the release' + required: true name: Release jobs: push-hatchet-server: @@ -10,7 +15,11 @@ jobs: - name: Get tag name id: tag_name run: | - tag=${GITHUB_TAG/refs\/tags\//} + if [ -z "${{ github.event.inputs.tag }}" ]; then + tag=${GITHUB_TAG/refs\/tags\//} + else + tag=${{ github.event.inputs.tag }} + fi echo ::set-output name=tag::$tag env: GITHUB_TAG: ${{ github.ref }}