Skip to content

Commit d2ea927

Browse files
authored
Use prerelease tag in changelog generation (#892)
1 parent a0366b9 commit d2ea927

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/create-release-pr.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,15 @@ jobs:
8181
id: build-changelog
8282
env:
8383
PREVIOUS_VERSION: ${{ steps.get-release.outputs.latest-tag }}
84+
RELEASE_TAG: ${{ steps.set-release.outputs.release-tag }}
8485
run: |
8586
CHANGELOG=$(curl -L \
8687
-X POST \
8788
-H "Accept: application/vnd.github+json" \
8889
-H "Authorization: Bearer ${{ github.token }}"\
8990
-H "X-GitHub-Api-Version: 2022-11-28" \
9091
https://api.github.com/repos/${{ github.repository }}/releases/generate-notes \
91-
-d '{"tag_name":"${{ env.RELEASE_VERSION }}","target_commitish":"${{ env.RELEASE_BRANCH }}","previous_tag_name":"${{ env.PREVIOUS_VERSION }}","configuration_file_path":".github/release.yml"}' \
92+
-d '{"tag_name":"${{ env.RELEASE_TAG }}","target_commitish":"${{ env.RELEASE_BRANCH }}","previous_tag_name":"${{ env.PREVIOUS_VERSION }}","configuration_file_path":".github/release.yml"}' \
9293
| jq -r '.body')
9394
9495
# The EOF steps are used to save multiline string in github:

0 commit comments

Comments
 (0)