Skip to content

Commit 79c6b63

Browse files
committed
Fix release workflow tag push and version detection
Grant contents: write so the runner's GITHUB_TOKEN can push the new tag, and fetch full history/tags on checkout so the version bump is computed from the actual latest tag instead of defaulting to v0.0.0.
1 parent afba91d commit 79c6b63

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ jobs:
2424
name: Release
2525
runs-on: ubuntu-latest
2626
permissions:
27-
contents: read
27+
contents: write
2828

2929
steps:
3030
- uses: actions/checkout@v7
31+
with:
32+
fetch-depth: 0
3133

3234
- name: Set up Go
3335
uses: actions/setup-go@v6

0 commit comments

Comments
 (0)