From 669bd1eed1c543dfed7807d40f346c3b9e48898a Mon Sep 17 00:00:00 2001 From: Juan Escalada Date: Mon, 4 May 2026 11:37:11 +0900 Subject: [PATCH 1/2] ci: rename release drafter config --- .github/{release-drafter.yml => release-drafter-config.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{release-drafter.yml => release-drafter-config.yml} (100%) diff --git a/.github/release-drafter.yml b/.github/release-drafter-config.yml similarity index 100% rename from .github/release-drafter.yml rename to .github/release-drafter-config.yml From 8eddf8c214aa8d6d04a47a0064aca963a2f2cc9e Mon Sep 17 00:00:00 2001 From: Juan Escalada Date: Mon, 4 May 2026 11:38:18 +0900 Subject: [PATCH 2/2] ci: fix release-drafter to run on pushes to release branches only --- ...se-branch-drafter.yml => release-drafter.yml} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename .github/workflows/{release-branch-drafter.yml => release-drafter.yml} (59%) diff --git a/.github/workflows/release-branch-drafter.yml b/.github/workflows/release-drafter.yml similarity index 59% rename from .github/workflows/release-branch-drafter.yml rename to .github/workflows/release-drafter.yml index 6755bcc3e..2afb7474d 100644 --- a/.github/workflows/release-branch-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,13 +1,9 @@ -name: Release Drafter (Release Branches) +name: Release Drafter on: push: branches: - 'release/**' - pull_request: - # needed so autolabeler runs on PRs from forks before merge, - # for when PR is finally merged into a release branch. - types: [opened, reopened, synchronize] permissions: contents: read @@ -15,8 +11,10 @@ permissions: jobs: update_release_draft: permissions: - contents: write # needed to create/update the draft release - pull-requests: write # needed for the autolabeler + # Required to create/update the draft release + # Autolabeling runs in a separate workflow so this job only + # needs to read merged PRs + contents: write runs-on: ubuntu-latest steps: - name: Harden Runner @@ -24,10 +22,12 @@ jobs: with: egress-policy: audit - - uses: release-drafter/release-drafter@v6 + - uses: release-drafter/release-drafter@563bf132657a13ded0b01fcb723c5a58cdd824e2 with: # Target the branch that triggered this run # Ex: "release/2.1" becomes the commitish for the draft commitish: ${{ github.ref_name }} + repository: ${{ github.repository }} + config-name: release-drafter-config.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}