From 4ee01b4ffd755fa8efb2b668208a50fe870aa2ec Mon Sep 17 00:00:00 2001 From: zackaj Date: Mon, 24 Feb 2025 22:31:55 +0100 Subject: [PATCH] new workflow for ci changelog --- .github/workflows/changelog.yaml | 18 ---------------- .github/workflows/changelog.yml | 35 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/changelog.yaml create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml deleted file mode 100644 index bf5dd6a..0000000 --- a/.github/workflows/changelog.yaml +++ /dev/null @@ -1,18 +0,0 @@ -- uses: ardalanamini/auto-changelog@v4 - id : changelog - name: Changelog - with: - commit-types : | - feat : New Features - fix : Bug Fixes - build : Build System & Dependencies - perf : Performance Improvements - docs : Documentation - test : Tests - refactor: Refactors - chore : Chores - ci : CI - style : Code Style - revert : Reverts - default-commit-type : Other Changes - release-name : v2.0.2 diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..b680ceb --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,35 @@ +jobs: + release: + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - name: Build Changelog + uses: mikepenz/release-changelog-builder-action@v5 + with: + mode: "PR" + configurationJson: | + { + "template": "#{{CHANGELOG}}\n\n
\nUncategorized\n\n#{{UNCATEGORIZED}}\n
", + "categories": [ + { + "title": "## Feature", + "labels": ["feat", "feature"] + }, + { + "title": "## Fix", + "labels": ["fix", "bug","hotfix"] + }, + { + "title": "## Other", + "labels": ["chore","refactor","dep"] + } + ], + "label_extractor": [ + { + "pattern": "^(build|chore|ci|docs|feat|fix|hotfix|perf|refactor|revert|style|test|dep){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)", + "target": "$1" + } + ] + } + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}