Fix release workflow: fetch git tags for changelog generation
actions/checkout@v4 does not fetch tags by default, causing the previous tag lookup to fail and fall back to comparing with the first commit SHA. Added fetch-depth: 0 to fetch all history including tags.
This commit is contained in:
parent
f444aec82f
commit
89bdb534e0
1 changed files with 2 additions and 0 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -117,6 +117,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Fetch all history for tags
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue