Skip to content

Commit 2575cb8

Browse files
authored
Add "v" prefix to changelog generation regex
The repository's existing tags use the style where the name is identical to the version name. The `arduino/create-changelog` action's `tag-regex` input value is currently configured for this tag style. That is correct for the previous tags, but all future tags will use the "v" prefix, as is required for best practices use of the project as a Go module dependency. This will result in the generated changelog for future releases containing the repository's commit history back to the last tag that uses the non-"v" prefix style of tag. Setting the regex up to support both tag styles will avoid such an issue.
1 parent 0ce1f07 commit 2575cb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-go-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Create changelog
2929
uses: arduino/create-changelog@v1
3030
with:
31-
tag-regex: '^[0-9]+\.[0-9]+\.[0-9]+.*$'
31+
tag-regex: '^v?[0-9]+\.[0-9]+\.[0-9]+.*$'
3232
filter-regex: '^\[(skip|changelog)[ ,-](skip|changelog)\].*'
3333
case-insensitive-regex: true
3434
changelog-file-path: "${{ env.DIST_DIR }}/CHANGELOG.md"

0 commit comments

Comments
 (0)