Skip to content

Commit 8e1cd78

Browse files
committed
chore: Add filter version flag to release workflow
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 <[email protected]>
1 parent d69b464 commit 8e1cd78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ jobs:
2222
- name: ChangeLog
2323
run: |
2424
curl -o /tmp/git-chglog.tar.gz -fsSL\
25-
https://github.com/git-chglog/git-chglog/releases/download/v0.14.0/git-chglog_0.14.0_linux_amd64.tar.gz
25+
https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz
2626
tar xvf /tmp/git-chglog.tar.gz --directory /tmp
2727
chmod u+x /tmp/git-chglog
2828
echo "creating change log for tag: $VERSION"
29-
/tmp/git-chglog "${VERSION}" > "${{github.workspace}}/changelog"
29+
filter_tag="--tag-filter-pattern=^v"
30+
/tmp/git-chglog $filter_tag "${VERSION}" > "${{github.workspace}}/changelog"
3031
- name: Create Release
3132
uses: actions/create-release@latest
3233
env:

0 commit comments

Comments
 (0)