Skip to content

Commit 309529d

Browse files
fix(release): tolerate a missing trailing = in the pending changelog marker
This repo's own readme.txt entries (e.g. 3.6.0, 3.5.3) are consistently committed without a closing =, unlike pro/addons' readme.txt convention. The marker regex required one, so a real pending entry written in this repo's own actual style would fail the workflow outright.
1 parent 975a10f commit 309529d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/prepare-release-draft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
3434
const today = new Date().toISOString().slice(0, 10).split('-').reverse().join('-');
3535
const content = fs.readFileSync('readme.txt', 'utf8');
36-
const match = content.match(/=\s*([\d.]+)\s*-\s*xx-xx-\d{4}\s*=\n([\s\S]*?)(?=\n=\s*[\d.]+\s*-|\n==|\n*$)/);
36+
const match = content.match(/=\s*([\d.]+)\s*-\s*xx-xx-\d{4}\s*=?\n([\s\S]*?)(?=\n=\s*[\d.]+\s*-|\n==|\n*$)/);
3737
3838
if (!match) {
3939
core.setOutput('shouldRelease', 'false');

0 commit comments

Comments
 (0)