Skip to content

Commit 7e187e1

Browse files
authored
Merge pull request #2044 from github/nickfyson/update-changelog
2 parents 0978396 + 2603673 commit 7e187e1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/post-release-mergeback.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ jobs:
133133
# Update the version number ready for the next release
134134
npm version patch --no-git-tag-version
135135
136-
# Update the changelog
137-
perl -i -pe 's/^/## \[UNRELEASED\]\n\nNo user facing changes.\n\n/ if($.==5)' CHANGELOG.md
136+
# Update the changelog, adding a new version heading directly above the most recent existing one
137+
awk '!f && /##/{print "'"## [UNRELEASED]\n\nNo user facing changes.\n"'"; f=1}1' CHANGELOG.md > temp && mv temp CHANGELOG.md
138138
git add .
139139
git commit -m "Update changelog and version after ${VERSION}"
140140

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.
44

5+
Note that the only difference between `v2` and `v3` of the CodeQL Action is the node version they support, with `v3` running on node 20 while we continue to release `v2` to support running on node 16. For example `3.22.11` was the first `v3` release and is functionally identical to `2.22.11`. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers.
6+
57
## [UNRELEASED]
68

79
No user facing changes.

0 commit comments

Comments
 (0)