Skip to content

Commit

Permalink
Use a more restrictive sed pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Mercer committed Mar 25, 2022
1 parent 9d26fe0 commit bed132d
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 @@ -277,7 +277,7 @@ def main():

# Migrate the changelog notes from v2 version numbers to v1 version numbers
print('Migrating changelog notes from v2 to v1')
subprocess.run(['sed', '-i', 's/## 2\./## 1\./g', 'CHANGELOG.md'])
subprocess.run(['sed', '-i', 's/^## 2\./## 1./g', 'CHANGELOG.md'])

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

0 comments on commit bed132d

Please sign in to comment.