From 42648721cc316b74833503c6b3a5674d92ffb995 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 8 Nov 2021 10:42:03 +0100 Subject: [PATCH] Test the fix of changelog generator Signed-off-by: Chris --- .github/changelog-configuration.json | 4 ++++ .github/changelog.sh | 2 +- .github/workflows/changelog.yml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/changelog-configuration.json b/.github/changelog-configuration.json index 444fbfa..1de512e 100644 --- a/.github/changelog-configuration.json +++ b/.github/changelog-configuration.json @@ -52,6 +52,10 @@ "tag_resolver": { "filter": { "pattern": "" + }, + "transformer": { + "pattern": "", + "target": "$1" } } } diff --git a/.github/changelog.sh b/.github/changelog.sh index cf61ee0..9cb5150 100755 --- a/.github/changelog.sh +++ b/.github/changelog.sh @@ -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:: diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 9eea800..74f5cb9 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -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,