Skip to content

Commit

Permalink
Try read changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bessman committed Jan 15, 2025
1 parent f51315e commit adb99ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read changelog
id: read-changelog
run: echo "::set-output name=changelog::$(cat CHANGELOG.md)"
- name: Parse changelog
uses: actions-ecosystem/action-regex-match@v2
id: regex-match
with:
text: CHANGELOG.md
regex: '## \[${{ github.event.release.tag_name }}\].*\n\n((.|\n)*)(?:## \[[0-9]+.[0-9]+.[0-9]+\])'
text: ${{ steps.read-changelog.outputs.changelog }}
regex: '## \[${{ github.event.release.tag_name }}\].*\n\n((.|\n)+?)(?:## \[[0-9]+.[0-9]+.[0-9]+\])'
flags: gm
- run: echo ${{ steps.regex-match.outputs.group1 }}
- name: Set release body
Expand Down

0 comments on commit adb99ca

Please sign in to comment.