Skip to content

Commit

Permalink
fix(ci): versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCura committed Oct 20, 2023
1 parent 724a3e4 commit bef6872
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:
- name: Get muttlib version
id: version
run: |
grep current_version .bumpversion.cfg | cut -d= -f2 | xargs >>$GITHUB_OUTPUT
echo "::set-output name=version::$(grep current_version .bumpversion.cfg | cut -d= -f2 | xargs)"
- name: Extract release notes from changelog
id: release_notes
run: |
version=${{ steps.version.outputs.version }}
release_notes=$(sed -n "/^## \[$version\]/,/^## /p" ./CHANGELOG.md | sed '1d;$d')
echo "$release_notes" >>$GITHUB_OUTPUT
echo "::set-output name=release_notes::$release_notes"
echo $release_notes > release_notes.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.version.outputs.version }}
name: v${{ steps.version.outputs.version }}
body: |
${{ steps.release_notes.outputs.release_notes }}
body_path: release_notes.txt
draft: false
prerelease: false

0 comments on commit bef6872

Please sign in to comment.