Skip to content

Commit

Permalink
chore: add debug outputs for github urls
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewthetechie committed May 21, 2023
1 parent 7fdc028 commit f04ef6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repo_manager/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,14 @@ def validate_inputs(parsed_inputs: dict[str, Any]) -> dict[str, Any]:
+ "GITHUB_SERVER_URL env var is not set. Please set "
+ "INPUT_GITHUB_SERVER_URL or GITHUB_SERVER_URL in the env"
)
actions_toolkit.debug(f"github_server_url: {parsed_inputs['github_server_url']}")
if parsed_inputs["github_server_url"] == "https://github.com":
api_url = "https://api.github.com"
else:
api_url = parsed_inputs["github_server_url"] + "/api/v3"

actions_toolkit.debug(f"api_url: {api_url}")

try:
repo = get_github_client(parsed_inputs["token"], api_url=api_url).get_repo(parsed_inputs["repo"])
except Exception as exc: # this should be tighter
Expand Down

0 comments on commit f04ef6d

Please sign in to comment.