Fix author email and name for scheduled jobs
This commit is contained in:
parent
f4703cdc23
commit
21aff96eee
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ def pr_branch_exists(repo, branch):
|
|||
|
||||
def get_head_author(github_event):
|
||||
if 'schedule' in github_event:
|
||||
email=os.environ['GITHUB_ACTOR']
|
||||
name=os.environ['GITHUB_ACTOR'] + '@users.noreply.github.com'
|
||||
email = os.environ['GITHUB_ACTOR'] + '@users.noreply.github.com'
|
||||
name = os.environ['GITHUB_ACTOR']
|
||||
else:
|
||||
email = "{head_commit[author][email]}".format(**github_event)
|
||||
name = "{head_commit[author][name]}".format(**github_event)
|
||||
|
|
Loading…
Reference in a new issue