Skip to content

Commit

Permalink
Fix CHANGELOG space errors (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon authored Feb 9, 2024
1 parent 107df3f commit baef6f0
Show file tree
Hide file tree
Showing 2 changed files with 418 additions and 416 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/update-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
throw new Error(`changelog already includes ${release.data.name}`);
}
const newEntry = `# ${release.data.name}\n${release.data.body}`;
const updatedChangelog = changelog.replace(placeholder, placeholder + '\n\n' + newEntry + '\n---\n');
let updatedChangelog = changelog.replace(placeholder, placeholder + '\n\n' + newEntry + '\n---\n');
// if the release notes are modified in the GitHub web editor, trailing spaces can be added accidentally
updatedChangelog = updatedChangelog.replace(/\s+$/, '');
fs.writeFileSync(changelogPath, updatedChangelog);
- uses: peter-evans/create-pull-request@v4
with:
Expand Down
Loading

0 comments on commit baef6f0

Please sign in to comment.