Skip to content

Commit 4eeee99

Browse files
authored
fix(release): Changelog Generator (#8)
1 parent 2c81b05 commit 4eeee99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-changelog.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
steps:
1212
- name: Update notes
1313
run: |
14-
NEW_NOTES=$(gh api --method POST -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/${{ github.repository }}/releases/generate-notes -f tag_name=$RELEASE_TAG | jq -r '.body')
15-
RELEASE_ID=$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/${{ github.repository }}/releases/tags/$RELEASE_TAG | jq -r '.id')
14+
NEW_NOTES=$(gh api --method POST -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/${{ github.repository }}/releases/generate-notes -f tag_name=${{ github.ref }} | jq -r '.body')
15+
RELEASE_ID=$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/${{ github.repository }}/releases/tags/${{ github.ref }} | jq -r '.id')
1616
gh api --method PATCH -H "Accept: application/vnd.github+json" /repos/${{ github.repository_owner }}/${{ github.repository }}/releases/$RELEASE_ID -f body=$NEW_NOTES
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)