From 910cbcb46b752063c7fa604aeb15f549ada8f089 Mon Sep 17 00:00:00 2001 From: Stefano Guerrini Date: Fri, 16 Oct 2026 13:18:04 +0200 Subject: [PATCH] ci(release): open the release PR only after the tag job On the push that merges a release PR, the release-PR job ran beside the tag job. When it read the releases first, it found none for the new version, read the whole history as unreleased, and opened a release PR that listed changes already shipped. It now waits for the tag job. --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45d0043..bec3568 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,10 @@ permissions: {} jobs: release-pr: name: Open or update the release PR - if: github.event_name == 'push' + # After the tag job: on the push that merges a release PR, release-please + # must see the new release, or it reads the whole history as unreleased. + needs: release + if: ${{ !cancelled() && github.event_name == 'push' && needs.release.result != 'failure' }} runs-on: ubuntu-latest concurrency: group: ${{ github.workflow }}-release-pr