From 4c6d4a7c6ff5aaef2e9fc02f036a5cead2526d48 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Thu, 29 May 2025 10:38:15 +0200 Subject: [PATCH] test rcb --- .gitea/changelog-config.json | 29 +++++++++++++++++++++++++++++ .gitea/workflows/relase.yml | 25 +++++++------------------ 2 files changed, 36 insertions(+), 18 deletions(-) create mode 100644 .gitea/changelog-config.json diff --git a/.gitea/changelog-config.json b/.gitea/changelog-config.json new file mode 100644 index 0000000..527d08e --- /dev/null +++ b/.gitea/changelog-config.json @@ -0,0 +1,29 @@ +{ + "categories": [ + { + "title": "## ๐Ÿš€ Features", + "labels": ["add","Add"] + }, + { + "title": "## ๐Ÿ› Fixes", + "labels": ["fix","Fix"] + }, + { + "title": "## ๐Ÿงช Upgrade", + "labels": ["upgrade","Upgrade","Clean"] + } + ], + "label_extractor": [ + { + "pattern": "(\\w+) (.+)", + "target": "$1", + "on_property": "title" + } + ], + "sort": "ASC", + "template": "${{CHANGELOG}}", + "pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}", + "empty_template": "- no changes", + "max_pull_requests": 1000, + "max_back_track_time_days": 1000 +} \ No newline at end of file diff --git a/.gitea/workflows/relase.yml b/.gitea/workflows/relase.yml index 2b02792..5912e6e 100644 --- a/.gitea/workflows/relase.yml +++ b/.gitea/workflows/relase.yml @@ -59,24 +59,13 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} - - name: "Build Changelog" - id: build_changelog - uses: mikepenz/release-changelog-builder-action@v5.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Add release notes to environment - id: add_release_notes - run: | - echo "RELEASE_NOTES<> $GITHUB_ENV - echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - - name: Get the changelog - run: | - cat << "EOF" - ${{ steps.changelog.outputs.changelog }} - EOF - echo ${{ steps.changelog.outputs.changelog }} + - name: Build Changelog + id: github_release + uses: mikepenz/release-changelog-builder-action@v2 + with: + platform: "gitea" + configuration: ".gitea/changelog-config.json" + token: ${{ secrets.TOKEN }} - name: Create release