Skip to content

ci: fix pre-release gate (release_created is empty, not 'false') - #160

Merged
its-mash merged 1 commit into
mainfrom
fix/prerelease-job-gate
Jun 15, 2026
Merged

ci: fix pre-release gate (release_created is empty, not 'false')#160
its-mash merged 1 commit into
mainfrom
fix/prerelease-job-gate

Conversation

@its-mash

Copy link
Copy Markdown
Member

Problem

On the first merge after #159 (run 27517243028) release-please succeeded but no pre-release was builtprerelease-version (and prerelease-build / prerelease-publish) were skipped.

Cause

release-please-action sets release_created to 'true' when it cuts a release and otherwise leaves it empty — it never emits the literal 'false'. The pre-release gate was:

if: needs.release-please.outputs.release_created == 'false' && github.event_name == 'push'

'' == 'false' is false, so the job never ran on a normal merge. (The same run confirms it: build-release, gated on == 'true', was also correctly skipped — only the == 'false' branch was wrong.)

Fix

Gate on != 'true', which matches both the empty and 'false' cases:

if: needs.release-please.outputs.release_created != 'true' && github.event_name == 'push'

Now: normal merge → release_created empty → pre-release builds; release-PR merge → release_created == 'true' → stable builds and the pre-release jobs skip. One-line change; YAML validated.

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 <maa.ashik00@gmail.com>
@its-mash
its-mash merged commit 542ccc5 into main Jun 15, 2026
3 checks passed
@its-mash
its-mash deleted the fix/prerelease-job-gate branch June 15, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant