Skip to content

Commit e79b355

Browse files
Make pre-release delimiter optional in do-release action (#312)
Make pre-release delimiter optional in do-release action Reviewed-by: Laura Barcziová
2 parents 1bc8187 + 366f3d3 commit e79b355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/do-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- name: Create GitHub release
1616
run: |
17-
VERSION=$(grep -oP '^# \K[0-9.]+([.\-_][a-zA-Z0-9.\-_]+)?' CHANGELOG.md | head -n 1)
17+
VERSION=$(grep -oP '^# \K[0-9.]+([.\-_]?[a-zA-Z0-9.\-_]+)?' CHANGELOG.md | head -n 1)
1818
# Take the lines between the first two headers from CHANGELOG.md,
1919
# and use it as a description for the new release.
2020
CHANGELOG=$(awk 'BEGIN { first = 0 } /^# / { if (first == 0) { first = 1 } else { exit } } /^[^#]/ { print $0 }' CHANGELOG.md)

0 commit comments

Comments
 (0)