From 4158b1471fd461a494bc62cc796f01ea3685c724 Mon Sep 17 00:00:00 2001 From: tanishqmanuja Date: Thu, 8 Jan 2026 15:18:30 +0530 Subject: [PATCH] feat: ability to change release tag can be useful when user is running custom changelog generator with fixed tag name gracefully fallbacks to version as tag_name if input.tag not specified --- .github/workflows/upload-to-gh-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload-to-gh-release.yml b/.github/workflows/upload-to-gh-release.yml index 99ef4fe..9564488 100644 --- a/.github/workflows/upload-to-gh-release.yml +++ b/.github/workflows/upload-to-gh-release.yml @@ -7,6 +7,10 @@ on: description: Version of the release required: true type: string + tag: + description: Tag of the release + required: false + type: string jobs: upload: @@ -55,4 +59,4 @@ jobs: uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3 with: files: output/* - tag_name: ${{ inputs.version }} + tag_name: ${{ inputs.tag != '' && inputs.tag || inputs.version }}