From 5da0404c257a92d15cb3d060c2601c7a8e10ecbb Mon Sep 17 00:00:00 2001 From: Colin Casey Date: Wed, 24 Jan 2024 12:45:24 -0400 Subject: [PATCH] Make unreleased header brackets optional --- .github/workflows/_classic-buildpack-prepare-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_classic-buildpack-prepare-release.yml b/.github/workflows/_classic-buildpack-prepare-release.yml index c6cd0c42..312cb273 100644 --- a/.github/workflows/_classic-buildpack-prepare-release.yml +++ b/.github/workflows/_classic-buildpack-prepare-release.yml @@ -91,7 +91,7 @@ jobs: NEW_VERSION_URL="https://github.com/${{ github.repository }}/compare/v${EXISTING_VERSION}...v${NEW_VERSION}" sed --in-place --regexp-extended \ - --expression "s~(^## \[${{ inputs.unreleased_header_text }}\])$~\1\n\n\n## [v${NEW_VERSION}] - ${DATE_TODAY}~" \ + --expression "s~(^## \[?${{ inputs.unreleased_header_text }}\]?)$~\1\n\n\n## [v${NEW_VERSION}] - ${DATE_TODAY}~" \ --expression "s~(^\[${{ inputs.unreleased_header_text }}\]:) .*$~\1 ${UNRELEASED_URL}\n[v${NEW_VERSION}]: ${NEW_VERSION_URL}~i" \ CHANGELOG.md