Skip to content

Commit 3ea341b

Browse files
Fix release workflow: checkout tag ref for workflow_dispatch
1 parent 7ee4f86 commit 3ea341b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,13 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
25+
ref: ${{ inputs.tag || github.ref }}
2526

2627
- name: Set up Go
2728
uses: actions/setup-go@v5
2829
with:
2930
go-version: 'stable'
3031

31-
- name: Determine version
32-
run: |
33-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
34-
echo "GORELEASER_CURRENT_TAG=${{ inputs.tag }}" >> "$GITHUB_ENV"
35-
fi
36-
3732
- name: Run GoReleaser
3833
uses: goreleaser/goreleaser-action@v7
3934
with:

0 commit comments

Comments
 (0)