Commit 8b028c6
authored
ci: fetch annotated tag object in release workflow (#3)
actions/checkout at a tag-push ref materializes the tag as a
lightweight ref on the runner unless fetch-tags is set, so
git tag -l --format='%(contents:subject)' "$tag"
returns nothing and the workflow falls back to the commit subject.
For squash-merged release PRs that subject is the auto-generated
"Release vX.Y.Z - ... (#N)" line, which is not what we want as a
release title.
Setting fetch-tags: true pulls the annotated tag object, so the
subject resolves to the message we pass via `git tag -a -m`.
Co-authored-by: Przemysław Szypowicz <2733699+pszypowicz@users.noreply.github.com>1 parent 4e3af94 commit 8b028c6
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
0 commit comments