Skip to content

Commit

Permalink
Test the fix of changelog generator
Browse files Browse the repository at this point in the history
Signed-off-by: Chris <[email protected]>
  • Loading branch information
ccremer committed Nov 8, 2021
1 parent d50315a commit 4264872
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/changelog-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"tag_resolver": {
"filter": {
"pattern": "<from-workflow>"
},
"transformer": {
"pattern": "<from-workflow>",
"target": "$1"
}
}
}
2 changes: 1 addition & 1 deletion .github/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ tagPattern="${chart}-(.+)"
labelPattern='^(?!\\['${chart}'\\])'

echo ::group::Configuring changelog generator
cat .github/changelog-configuration.json | jq '.tag_resolver.filter.pattern="'$tagPattern'" | .label_extractor[0].pattern="'$labelPattern'"' > .github/configuration.json
cat .github/changelog-configuration.json | jq '.tag_resolver.filter.pattern="'$tagPattern'" | .tag_resolver.transformer.pattern="'$tagPattern'" | .label_extractor[0].pattern="'$labelPattern'"' > .github/configuration.json
cat .github/configuration.json
echo ::endgroup::
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Build changelog from PRs with labels
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v2
uses: mikepenz/release-changelog-builder-action@feature/572
with:
configuration: ".github/configuration.json"
# PreReleases still get a changelog, but the next full release gets a diff since the last full release,
Expand Down

0 comments on commit 4264872

Please sign in to comment.