Skip to content

Commit 074e43a

Browse files
committed
chore(ci): fix publish-gh-release failure
When generating the changelog heading for the new version, scriv uses an em dash (—) to separate the version from the date, not a hypen dash. Do not try to match it when extracting the notes for the release. Update the existing entry in CHANGELOG.md to use an em dash.
1 parent 55cbd20 commit 074e43a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<a id='changelog-1.5.0'></a>
1212

13-
## 1.5.0 - 2022-11-28
13+
## 1.5.0 2022-11-28
1414

1515
### Added
1616

scripts/release

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ def get_release_notes(version: str) -> str:
201201

202202
# Extract changes from CHANGELOG.md
203203
changes = CHANGELOG_PATH.read_text()
204-
start_match = re.search(
205-
f"^## {re.escape(version)} - .*", changes, flags=re.MULTILINE
206-
)
204+
start_match = re.search(f"^## {re.escape(version)} .*", changes, flags=re.MULTILINE)
207205
assert start_match
208206
start_pos = start_match.end() + 1
209207

0 commit comments

Comments
 (0)