Skip to content

Commit 2060917

Browse files
committed
update CHANGELOG in pre-release workflow
1 parent 965b758 commit 2060917

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/pre-release-prepare.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ jobs:
9494
git commit -am "Update version to ${VERSION}"
9595
git push origin "v${VERSION}_release"
9696
97+
- name: Update CHANGELOG for release
98+
if: github.event.inputs.is_patch != 'true'
99+
run: |
100+
# Replace "## Unreleased" with "## ${VERSION} - $(date +%Y-%m-%d)" for new releases
101+
sed -i "s/## Unreleased/## ${VERSION} - $(date +%Y-%m-%d)/" CHANGELOG.md
102+
git add CHANGELOG.md
103+
git commit -m "Update CHANGELOG for version ${VERSION}"
104+
git push origin "v${VERSION}_release"
105+
97106
- name: Create pull request against the release branch
98107
env:
99108
GITHUB_TOKEN: ${{ env.BOT_TOKEN_GITHUB_RW_PATOKEN }}

0 commit comments

Comments
 (0)