We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f42b877 commit 693d096Copy full SHA for 693d096
jupyter_releaser/util.py
@@ -489,8 +489,10 @@ def prepare_environment():
489
"""Prepare the environment variables, for use when running one of the
490
action scripts."""
491
# Set up env variables
492
- os.environ.setdefault("RH_REPOSITORY", os.environ["GITHUB_REPOSITORY"])
493
- os.environ.setdefault("RH_REF", os.environ["GITHUB_REF"])
+ if not os.environ.get("RH_REPOSITORY"):
+ os.environ["RH_REPOSITORY"] = os.environ["GITHUB_REPOSITORY"]
494
+ if not os.environ.get("RH_REF"):
495
+ os.environ["RH_REF"] = os.environ["GITHUB_REF"]
496
497
check_release = os.environ.get("RH_IS_CHECK_RELEASE", "").lower() == "true"
498
if not os.environ.get("RH_DRY_RUN") and check_release:
0 commit comments