Skip to content

Commit c1157c4

Browse files
committed
Fix tag object fetch in release workflow
1 parent d790636 commit c1157c4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ jobs:
5858
- name: Extract release notes from tag
5959
id: notes
6060
run: |
61-
# Get the annotated tag message (or commit message for lightweight tags)
61+
# Re-fetch the tag to ensure the annotated tag object is present
62+
git fetch origin tag "${GITHUB_REF_NAME}" --force --no-tags
6263
NOTES=$(git tag -l --format='%(contents)' "${GITHUB_REF_NAME}")
6364
if [ -z "$NOTES" ]; then
6465
NOTES=$(git log -1 --format='%B' "${GITHUB_REF_NAME}")

0 commit comments

Comments
 (0)