Repository navigation
ci: Don't create a 'false' deployment on non-master builds - #958
Merged
Merged
Conversation
The build job's environment expression `github.ref == 'refs/heads/master' && 'production'` evaluates to boolean false off master, which GitHub coerces to an environment literally named "false". Every PR build then records a "false" deployment. Fall back to an empty string so non-master builds run without an environment. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
BYK
approved these changes
Nov 3, 2026
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PRs show a weird green
falseentry under "Deployments".The
buildjob inbuild.ymlandrelease-build.ymlsets:Off
masterthis evaluates to booleanfalse, which GitHub coerces to an environment literally named"false". The repo now has afalseenvironment (auto-created, no protection rules), and every PR build records a deployment to it. Recent deployments to it come fromrelease/3.8.0and several bot PR branches.This change adds
|| ''so non-master builds run with no environment at all. On master it still resolves toproduction, so behavior there doesn't change.Follow-up for a repo admin: delete the leftover
falseenvironment in Settings → Environments. That also removes its deployment history from existing PRs.via @BYK.
--
View Session in Sentry