Skip to content

Commit 06b13fb

Browse files
authored
Fetch the tag annotation before releasing (#5)
1 parent e5a1ed8 commit 06b13fb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ jobs:
239239
- uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
240240
- uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
241241

242+
# The checkout leaves the tag as a plain pointer at the commit; the
243+
# annotation, which the release header prints as {{ .TagBody }}, only
244+
# arrives with a forced tag fetch. Without it every release note is
245+
# blank above the commit list.
246+
- name: fetch the tag annotation
247+
run: git fetch --force --tags
248+
242249
- uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
243250
with:
244251
version: "~> v2"

0 commit comments

Comments
 (0)