From fe504c9a068137cad697101c13fdeea63a4e827a Mon Sep 17 00:00:00 2001 From: Mohammod Al Amin Ashik Date: Mon, 15 Jun 2026 08:38:50 +0800 Subject: [PATCH] ci: fix pre-release gate (release_created is empty, not 'false') MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit release-please-action sets `release_created` to 'true' or leaves it empty — never the literal 'false'. The prerelease-version job gated on `== 'false'`, so it (and prerelease-build/prerelease-publish) was skipped on every non-release merge to main. Gate on `!= 'true'` instead, which matches both the empty and 'false' cases. Signed-off-by: Mohammod Al Amin Ashik --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b05ea02..a3808490 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,7 +95,9 @@ jobs: # ───────────────────────────────────────────────────────────── prerelease-version: needs: release-please - if: needs.release-please.outputs.release_created == 'false' && github.event_name == 'push' + # release-please-action sets release_created to 'true' or leaves it empty + # (never the literal 'false'), so gate on != 'true', not == 'false'. + if: needs.release-please.outputs.release_created != 'true' && github.event_name == 'push' runs-on: ubuntu-latest permissions: contents: write