Skip to content

Commit

Permalink
Include github repo param
Browse files Browse the repository at this point in the history
  • Loading branch information
tnm authored Sep 25, 2024
1 parent 3ae86fd commit 5ae8f98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ def main():
pr_number = os.getenv('GITHUB_EVENT_PULL_REQUEST_NUMBER')
trigger = os.getenv('INPUT_TRIGGER', 'pr_merge')

project_name = os.getenv('GITHUB_REPOSITORY')
if not project_name:
print('Unable to determine project name from GITHUB_REPOSITORY.')
sys.exit(1)

data = {
'branch_name': branch_name,
'target_name': target,
'trigger': trigger
'trigger': trigger,
'project_name': project_name
}

if pr_number:
Expand Down

0 comments on commit 5ae8f98

Please sign in to comment.