Skip to content

Commit 43557dd

Browse files
committed
ci(release): re-fetch tag annotation before creating the release
actions/checkout flattens the annotated tag to its commit (actions/checkout#290), so --notes-from-tag fell back to the commit message. Force-fetching the real tag ref restores the annotation.
1 parent e6c707e commit 43557dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
run: cd chrome && zip -r "../authenticator-chrome-${GITHUB_REF_NAME}.zip" .
3535

3636
- name: Create release
37-
run: gh release create "$GITHUB_REF_NAME" "authenticator-chrome-${GITHUB_REF_NAME}.zip" --title "$GITHUB_REF_NAME" --notes-from-tag
37+
run: |
38+
git fetch --force origin "refs/tags/${GITHUB_REF_NAME}:refs/tags/${GITHUB_REF_NAME}"
39+
gh release create "$GITHUB_REF_NAME" "authenticator-chrome-${GITHUB_REF_NAME}.zip" --title "$GITHUB_REF_NAME" --notes-from-tag
3840
env:
3941
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)