Skip to content

Commit

Permalink
Make pre-release delimiter optional in do-release action (#312)
Browse files Browse the repository at this point in the history
Make pre-release delimiter optional in do-release action

Reviewed-by: Laura Barcziová
  • Loading branch information
softwarefactory-project-zuul[bot] authored Nov 14, 2023
2 parents 1bc8187 + 366f3d3 commit e79b355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/do-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- name: Create GitHub release
run: |
VERSION=$(grep -oP '^# \K[0-9.]+([.\-_][a-zA-Z0-9.\-_]+)?' CHANGELOG.md | head -n 1)
VERSION=$(grep -oP '^# \K[0-9.]+([.\-_]?[a-zA-Z0-9.\-_]+)?' CHANGELOG.md | head -n 1)
# Take the lines between the first two headers from CHANGELOG.md,
# and use it as a description for the new release.
CHANGELOG=$(awk 'BEGIN { first = 0 } /^# / { if (first == 0) { first = 1 } else { exit } } /^[^#]/ { print $0 }' CHANGELOG.md)
Expand Down

0 comments on commit e79b355

Please sign in to comment.