Skip to content

Commit 693d096

Browse files
committed
try again
1 parent f42b877 commit 693d096

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jupyter_releaser/util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,10 @@ def prepare_environment():
489489
"""Prepare the environment variables, for use when running one of the
490490
action scripts."""
491491
# Set up env variables
492-
os.environ.setdefault("RH_REPOSITORY", os.environ["GITHUB_REPOSITORY"])
493-
os.environ.setdefault("RH_REF", os.environ["GITHUB_REF"])
492+
if not os.environ.get("RH_REPOSITORY"):
493+
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"]
494496

495497
check_release = os.environ.get("RH_IS_CHECK_RELEASE", "").lower() == "true"
496498
if not os.environ.get("RH_DRY_RUN") and check_release:

0 commit comments

Comments
 (0)