From b97219b79a77ea9bfe1b96f024281dd868732ecf Mon Sep 17 00:00:00 2001 From: Esteban Beltran Date: Tue, 30 Jun 2026 15:39:59 +0200 Subject: [PATCH] fix(release): skip next release PR on release merges --- .github/workflows/release-please.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 38386317..8cf07ab2 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -57,6 +57,10 @@ jobs: manifest-file: .release-please-manifest.json target-branch: ${{ github.ref_name }} token: ${{ steps.generate-github-token.outputs.token }} + # On a release PR merge, release-please must still create the draft + # GitHub Release for GoReleaser to adopt, but it must not calculate + # the next release PR before GoReleaser publishes the draft/tag. + skip-github-pull-request: "${{ github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(main): release ') }}" # Build binaries, upload them to the drafted plugin-validator release, and # publish it. Only runs on the push that merges the plugin-validator release