From e7a048b139e997e689e8d945e1326bb6effe2999 Mon Sep 17 00:00:00 2001 From: FonduemangVI <15520607+FonduemangVI@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:08:20 +1000 Subject: [PATCH] chore(autochangelog): push latest updates --- .../release-changelog-builder-action.json | 63 +++++++++++++++++++ .github/workflows/changelog-builder.yml | 31 +++++++++ 2 files changed, 94 insertions(+) create mode 100644 .github/configs/release-changelog-builder-action.json create mode 100644 .github/workflows/changelog-builder.yml diff --git a/.github/configs/release-changelog-builder-action.json b/.github/configs/release-changelog-builder-action.json new file mode 100644 index 000000000..3abf0d0be --- /dev/null +++ b/.github/configs/release-changelog-builder-action.json @@ -0,0 +1,63 @@ +{ + "categories": [ + { + "title": "### Guide - Features", + "labels": ["type: enhancement", "type: guide request"], + "exhaustive": true + }, + { + "title": "### Guide - Fixes", + "labels": ["type: bug"], + "exclude_labels": ["status: non issue"] + }, + { + "title": "### Guide - Updates", + "labels": ["status: confirmed"] + }, + { + "title": "### Radarr - Features", + "labels": ["area: radarr", "type: enhancement"], + "exhaustive": true + }, + { + "title": "### Radarr - Fixes", + "labels": ["area: radarr", "type: bug"], + "exclude_labels": ["status: non issue"], + "exhaustive": true + }, + { + "title": "### Radarr - Updates", + "labels": ["area: radarr"] + }, + { + "title": "### Sonarr - Features", + "labels": ["area: sonarr", "type: enhancement"], + "exhaustive": true + }, + { + "title": "### Sonarr - Fixes", + "labels": ["area: sonarr", "type: bug"], + "exclude_labels": ["status: non issue"], + "exhaustive": true + }, + { + "title": "### Sonarr - Updates", + "labels": ["area: sonarr"] + }, + { + "title": "### Others", + "labels": [] + } + ], + "ignore_labels": ["status: declined"], + "sort": { + "order": "ASC", + "on_property": "title" + }, + "template": "${{CHANGELOG}}\n${{UNCATEGORIZED}}", + "pr_template": "- [${{TITLE}}](${{URL}})", + "empty_template": "- no changes", + "base_branches": [ + "master" + ] +} diff --git a/.github/workflows/changelog-builder.yml b/.github/workflows/changelog-builder.yml new file mode 100644 index 000000000..e322c2570 --- /dev/null +++ b/.github/workflows/changelog-builder.yml @@ -0,0 +1,31 @@ +name: Release Creation + +on: + workflow_dispatch: + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # Build the changelog + - name: Build Changelog + id: build_changelog + uses: mikepenz/release-changelog-builder-action@v4 + with: + configuration: ".github/configs/release-changelog-builder-action.json" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Change the update file + - name: Modify updates.txt + uses: jaywcjlove/github-action-modify-file-content@main + with: + path: docs/updates.txt + body: "#{{date:YYYY-MM-DD HH:mm}}\n${{ steps.build_changelog.outputs.changelog }}" + openDelimiter: "" + closeDelimiter: ""