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 3d0b031 commit 0ca050bCopy full SHA for 0ca050b
jupyter_releaser/util.py
@@ -490,7 +490,12 @@ def prepare_environment():
490
action scripts."""
491
# Set up env variables
492
if not os.environ.get("RH_REPOSITORY"):
493
- os.environ["RH_REPOSITORY"] = os.environ["GITHUB_REPOSITORY"]
+ if os.environ.get("RH_RELEASE_URL"):
494
+ match = parse_release_url(os.environ["RH_RELEASE_URL"])
495
+ owner, repo = match["owner"], match["repo"]
496
+ os.environ["RH_REPOSITORY"] = f"{owner}/{repo}"
497
+ else:
498
+ os.environ["RH_REPOSITORY"] = os.environ["GITHUB_REPOSITORY"]
499
if not os.environ.get("RH_REF"):
500
os.environ["RH_REF"] = os.environ["GITHUB_REF"]
501
0 commit comments