Skip to content

Commit

Permalink
Add more test workflow stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
danudey committed Jul 4, 2024
1 parent d189fd5 commit 4fd4fbb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions check_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@

import github

GITHUB_EVENT_PATH = os.getenv("GITHUB_EVENT_PATH")
def get_env(env_name):
value = os.getenv(env_name):
print(f"ENV {env_name} = {value}", file=sys.stdout)
return value

GITHUB_EVENT_PATH = get_env("GITHUB_EVENT_PATH")

github_data = json.load(open(GITHUB_EVENT_PATH))

gh = github.Github()

repo_name = os.getenv("GH_REPO")
repo_name = get_env("GH_REPO")
pr_number = github_data['number']

repo = gh.get_repo(repo_name)
Expand Down

0 comments on commit 4fd4fbb

Please sign in to comment.