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.
This commit is contained in:
Andrew Eisenberg
2020-08-12 11:04:50 -07:00
parent ef55d9d4e0
commit ef84d8d362

View File

@@ -114,6 +114,12 @@ jobs:
NEXT_VERSION="$(npm version patch)"
echo "::set-output name=next_version::$NEXT_VERSION"
- name: Add changelog for next release
if: success()
run: |
cd extensions/ql-vscode
perl -i -pe 's/^/## \[UNRELEASED\]\n\n/ if($.==3)' CHANGELOG.md
- name: Create version bump PR
uses: peter-evans/create-pull-request@c7b64af0a489eae91f7890f2c1b63d13cc2d8ab7 # v2.4.2
if: success()