Skip to content

Commit

Permalink
Merge pull request #1002 from github/henrymercer/update-changelog-rew…
Browse files Browse the repository at this point in the history
…riting

Update changelog rewriting step to match v2+ only changelog notes
  • Loading branch information
henrymercer authored Mar 29, 2022
2 parents f0e2f3c + 282b607 commit af34c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/update-release-branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def main():
subprocess.run(['sed', '-i', 's/^## 2\./## 1./g', 'CHANGELOG.md'])

# Remove changelog notes from v2 that don't apply to v1
subprocess.run(['sed', '-i', '/^- The CodeQL Action now runs on Node\.js v16\./d', 'CHANGELOG.md'])
subprocess.run(['sed', '-i', '/^- \[v2+ only\]/d', 'CHANGELOG.md'])

# Amend the commit generated by `npm version` to update the CHANGELOG
run_git('add', 'CHANGELOG.md')
Expand Down

0 comments on commit af34c6d

Please sign in to comment.