Skip to content

Commit 0f204c4

Browse files
committed
fix: release action no automatic body
Fetch tags after checkout, preventing `git describe` to fail silently.
1 parent df4cb0a commit 0f204c4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
draft:
2525
description: 'Draft'
2626
required: true
27-
default: true
27+
default: false
2828
type: boolean
2929

3030
env:
@@ -59,6 +59,10 @@ jobs:
5959
git config user.name "github-actions[bot]"
6060
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
6161
62+
- name: Fetch tags
63+
id: fetch_tags
64+
run: git fetch --prune --unshallow --tags
65+
6266
- name: Generate release body
6367
id: make_body
6468
run: .github/workflows/body.sh >> $GITHUB_ENV

0 commit comments

Comments
 (0)