From ac97a500de0b120be235f28837851000d785ab72 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 2 Jan 2025 10:32:14 +0100 Subject: [PATCH] Revert CI workflow to release-drafter again --- .github/FUNDING.yml | 4 ++ .github/release-drafter.yml | 45 +++++++++++++++++++ .github/workflows/.release-please-config.json | 4 -- .../workflows/.release-please-manifest.json | 3 -- .github/workflows/pr-labels.yaml | 24 ++++++++++ .github/workflows/release-drafter.yml | 15 +++++++ .github/workflows/release-please.yml | 24 ---------- 7 files changed, 88 insertions(+), 31 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/release-drafter.yml delete mode 100644 .github/workflows/.release-please-config.json delete mode 100644 .github/workflows/.release-please-manifest.json create mode 100644 .github/workflows/pr-labels.yaml create mode 100644 .github/workflows/release-drafter.yml delete mode 100644 .github/workflows/release-please.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..8aed78b --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,4 @@ +# These are supported funding model platforms + +github: music-assistant +custom: https://www.buymeacoffee.com/marcelveldt diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..5dc16a3 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,45 @@ +name-template: '$RESOLVED_VERSION' +tag-template: '$RESOLVED_VERSION' +change-template: '- #$NUMBER - $TITLE (@$AUTHOR)' +categories: + + - title: "⚠ Breaking Changes" + labels: + - 'breaking-change' + + - title: "🐛 Bugfixes" + labels: + - 'bugfix' + + - title: "🚀 Features" + labels: + - 'feature' + - 'enhancement' + - 'new-feature' + - 'new-provider' + + - title: '🧰 Maintenance' + labels: + - 'ci' + - 'documentation' + - 'maintenance' + + - title: '⬆️ Dependencies' + collapse-after: 1 + labels: + - 'dependencies' + +template: | + ## What’s Changed + + $CHANGES + +version-resolver: + major: + labels: + - 'breaking-change' + minor: + labels: + - 'new-feature' + - 'new-provider' + default: patch diff --git a/.github/workflows/.release-please-config.json b/.github/workflows/.release-please-config.json deleted file mode 100644 index 0a580e7..0000000 --- a/.github/workflows/.release-please-config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", - "draft": true -} diff --git a/.github/workflows/.release-please-manifest.json b/.github/workflows/.release-please-manifest.json deleted file mode 100644 index 37fcefa..0000000 --- a/.github/workflows/.release-please-manifest.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - ".": "1.0.0" -} diff --git a/.github/workflows/pr-labels.yaml b/.github/workflows/pr-labels.yaml new file mode 100644 index 0000000..ed236d1 --- /dev/null +++ b/.github/workflows/pr-labels.yaml @@ -0,0 +1,24 @@ +--- +name: PR Labels + +# yamllint disable-line rule:truthy +on: + pull_request: + types: + - synchronize + - labeled + - unlabeled + branches: + - stable + - dev + +jobs: + pr_labels: + name: Verify + runs-on: ubuntu-latest + steps: + - name: 🏷 Verify PR has a valid label + uses: ludeeus/action-require-labels@1.1.0 + with: + labels: >- + breaking-change, bugfix, refactor, new-feature, maintenance, ci, dependencies, documentation, new-provider, enhancement diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..02c2caa --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,15 @@ +name: Release Drafter + +on: + push: + branches: + - stable + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "stable" + - uses: release-drafter/release-drafter@v6.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index 34d23e5..0000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Release Notes drafter (release-please) -on: - push: - branches: - - main - -permissions: - contents: write - pull-requests: write - -jobs: - release-please: - runs-on: ubuntu-latest - outputs: - version: ${{ steps.release.outputs.tag_name }} - release_created: ${{ steps.release.outputs.release_created }} - steps: - - uses: googleapis/release-please-action@v4 - id: release - with: - token: ${{ secrets.PRIVILEGED_GITHUB_TOKEN }} - release-type: simple - manifest-file: .github/workflows/.release-please-manifest.json - config-file: .github/workflows/.release-please-config.json