Skip to content

Commit

Permalink
chore: Add filter version flag to release workflow
Browse files Browse the repository at this point in the history
As we now have nested submodules the Changelog
generator chokes on path prefixed versions. This
change exclude tags that don't start with v. Also
bump the tool version.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
  • Loading branch information
crozzy committed Aug 1, 2022
1 parent d69b464 commit 8e1cd78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
- name: ChangeLog
run: |
curl -o /tmp/git-chglog.tar.gz -fsSL\
https://github.com/git-chglog/git-chglog/releases/download/v0.14.0/git-chglog_0.14.0_linux_amd64.tar.gz
https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz
tar xvf /tmp/git-chglog.tar.gz --directory /tmp
chmod u+x /tmp/git-chglog
echo "creating change log for tag: $VERSION"
/tmp/git-chglog "${VERSION}" > "${{github.workspace}}/changelog"
filter_tag="--tag-filter-pattern=^v"
/tmp/git-chglog $filter_tag "${VERSION}" > "${{github.workspace}}/changelog"
- name: Create Release
uses: actions/create-release@latest
env:
Expand Down

0 comments on commit 8e1cd78

Please sign in to comment.