Skip to content

Commit 560243a

Browse files
committed
fix(ci): use workflow_dispatch tag input for GitHub Release tag_name
When triggered via workflow_dispatch, github.ref_name is the branch name (main), not the tag. The release was being attached to a ghost 'main' release instead of the intended v0.7.0 release. Use github.event.inputs.tag || github.ref_name to correctly resolve the tag in all three trigger modes (push tag, release published, workflow_dispatch).
1 parent 76a2c55 commit 560243a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ jobs:
301301
uses: softprops/action-gh-release@v3
302302
with:
303303
name: ${{ env.RELEASE_VERSION }}
304-
tag_name: ${{ github.ref_name }}
304+
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
305305
body_path: ${{ steps.notes.outputs.notes_path }}
306306
files: |
307307
build/Bocan.dmg

0 commit comments

Comments
 (0)