Skip to content

Commit ef84d8d

Browse files
committed
Update changelog after release
Add a simple perl script that will augment the CHANGELOG with an [UNRELEASED] section when creating the PR after a release.
1 parent ef55d9d commit ef84d8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ jobs:
114114
NEXT_VERSION="$(npm version patch)"
115115
echo "::set-output name=next_version::$NEXT_VERSION"
116116
117+
- name: Add changelog for next release
118+
if: success()
119+
run: |
120+
cd extensions/ql-vscode
121+
perl -i -pe 's/^/## \[UNRELEASED\]\n\n/ if($.==3)' CHANGELOG.md
122+
117123
- name: Create version bump PR
118124
uses: peter-evans/create-pull-request@c7b64af0a489eae91f7890f2c1b63d13cc2d8ab7 # v2.4.2
119125
if: success()

0 commit comments

Comments
 (0)