Skip to content

Commit 79b98db

Browse files
authored
Fix changelog generation (#250)
1 parent 5b3b89f commit 79b98db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish_release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,17 @@ jobs:
124124
token: ${{ secrets.GITHUB_TOKEN }}
125125
branch: "1.x"
126126

127+
- name: Prepare changelog release notes
128+
id: changelog-notes
129+
run: |
130+
notes="$(echo "${{ steps.notes.outputs.release-notes }}" | sed "s/^## /### /")"
131+
echo "release-notes=$notes" >> $GITHUB_OUTPUT
132+
127133
- name: Update Changelog
128134
uses: stefanzweifel/changelog-updater-action@v1
129135
with:
130-
release-notes: ${{ steps.notes.outputs.release-notes }}
131-
latest-version: "v${{ github.event.release.tag_name }}"
136+
release-notes: ${{ steps.changelog-notes.outputs.release-notes }}
137+
latest-version: "v${{ steps.bump-version.outputs.version }}"
132138
compare-url-target-revision: "1.x"
133139
parse-github-usernames: true
134140

0 commit comments

Comments
 (0)