diff --git a/.github/workflows/changelog-pr.yml b/.github/workflows/changelog-pr.yml index 2a402e6a6..efb09a0c2 100644 --- a/.github/workflows/changelog-pr.yml +++ b/.github/workflows/changelog-pr.yml @@ -112,7 +112,7 @@ jobs: // Replace todays release notes or insert release notes above previous release notes const regex = changelogIncludesTodaysReleaseNotes ? - new RegExp(`\n## ${today}.*(?=## ${latestDateInChangelog})`, "gs") : + new RegExp(`## ${today}.*(?=## ${latestDateInChangelog})`, "gs") : new RegExp(`(?=## ${latestDateInChangelog})`, "gs"); const newChangelogContent = changelogContent.replace(regex, newReleaseNotes) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9791ee33d..1770619c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ All LXC instances created using this repository come pre-installed with Midnight > [!IMPORTANT] Do not break established syntax in this file, as it is automatically updated by a Github Workflow + ## 2024-11-23 ### Changed