From 92a21d1f85a4bcaad9bb8dda57aef4da6b355f1f Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Mon, 17 Aug 2026 19:04:49 +0200 Subject: [PATCH] Keep the 4.x release drafter config on the 4.x branch The workflow inherited from the release commit still drafted against master, which on this branch means it never ran at all. It now fires on pushes to 4.x and reads a config filtered to this commitish, so the 4.x and 5.x lines draft separate releases. --- .github/release-drafter-4.x.yml | 5 +++++ .github/workflows/release-drafter.yml | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .github/release-drafter-4.x.yml diff --git a/.github/release-drafter-4.x.yml b/.github/release-drafter-4.x.yml new file mode 100644 index 00000000..971f0d84 --- /dev/null +++ b/.github/release-drafter-4.x.yml @@ -0,0 +1,5 @@ +_extends: .github:.github/release-drafter.yml +tag-template: plexus-archiver-$NEXT_PATCH_VERSION +version-template: 4.$MINOR.$PATCH +commitish: 4.x +filter-by-commitish: true diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 777accd8..6a3c7f56 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,12 +1,15 @@ -name: Release Drafter +name: Release Drafter 4.x on: push: branches: - - master + - 4.x jobs: update_release_draft: runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter@v7 + - uses: release-drafter/release-drafter@v7.7.0 + with: + # Resolved against .github/ on the branch this workflow runs on, not on the default branch. + config-name: 'release-drafter-4.x.yml' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}