Skip to content

Commit

Permalink
Try to parse changelog without external deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bessman committed Jan 15, 2025
1 parent cc1ef3c commit 12a4280
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
id: regex-match
run: |
regex='## \[${{ github.event.release.tag_name }}\].*\n\n((.|\n)+?)(?:## \[[0-9]+.[0-9]+.[0-9]+\])'
changelog="${{ steps.read-changelog.outputs.content }}"
echo $regex
if [[ "${{ steps.read-changelog.outputs.content }}" =~ $regex ]]
if [[ $changelog =~ $regex ]]
then
echo 'group1<<EOF' >> $GITHUB_OUTPUT
echo '${BASH_REMATCH[1]}' >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 12a4280

Please sign in to comment.