We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b56111a commit af13f97Copy full SHA for af13f97
scripts/embed_env_vars.py
@@ -18,10 +18,11 @@
18
# If we are running in CI and either building the master branch,
19
# or building a PR that will merge into the master branch, THEN
20
# we will build in RELEASE mode.
21
-is_ci = sysenv.get_bool('CI')
22
-is_branch_master = sysenv.get_string('GITHUB_REF_NAME') == 'master'
+is_ci = sysenv.get_bool('CI', False)
+is_branch_master = sysenv.get_string('GITHUB_REF_NAME', '') == 'master'
23
is_pr_into_master = (
24
- sysenv.get_string('GITHUB_BASE_REF') == 'master' and sysenv.get_string('GITHUB_EVENT_NAME', '') == 'pull_request'
+ sysenv.get_string('GITHUB_BASE_REF', '') == 'master'
25
+ and sysenv.get_string('GITHUB_EVENT_NAME', '') == 'pull_request'
26
)
27
is_release_build = is_ci and (is_branch_master or is_pr_into_master)
28
0 commit comments