Skip to content

Commit

Permalink
Fix CHANGELOG parsing in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
klane committed Dec 22, 2019
1 parent 0fb96a3 commit be83d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Get changes
id: changelog
run: |
pattern='0,/${{ github.ref }}/d;/[0-9]\+\.[0-9]\+\.[0-9]\+/Q'
pattern='0,/${GITHUB_REF#refs/tags/v}/d;/[0-9]\+\.[0-9]\+\.[0-9]\+/Q'
echo ::set-output name=changelog::$(sed $pattern CHANGELOG.md | head -n -1 | tail -n +2)
- name: Create release
uses: actions/create-release@master
Expand Down

0 comments on commit be83d8a

Please sign in to comment.