Skip to content

Commit 542ccc5

Browse files
authored
ci: fix pre-release gate (release_created is empty, not 'false') (#160)
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent e9306c4 commit 542ccc5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ jobs:
9595
# ─────────────────────────────────────────────────────────────
9696
prerelease-version:
9797
needs: release-please
98-
if: needs.release-please.outputs.release_created == 'false' && github.event_name == 'push'
98+
# release-please-action sets release_created to 'true' or leaves it empty
99+
# (never the literal 'false'), so gate on != 'true', not == 'false'.
100+
if: needs.release-please.outputs.release_created != 'true' && github.event_name == 'push'
99101
runs-on: ubuntu-latest
100102
permissions:
101103
contents: write

0 commit comments

Comments
 (0)