You've already forked wakapi-readme-stats
Merge pull request #303 from rowan-vr/302-commit-branch
Allow selection for another branch than the default ones
This commit is contained in:
3
main.py
3
main.py
@@ -30,6 +30,7 @@ listReg = f"{START_COMMENT}[\\s\\S]+{END_COMMENT}"
|
||||
|
||||
waka_key = os.getenv('INPUT_WAKATIME_API_KEY')
|
||||
ghtoken = os.getenv('INPUT_GH_TOKEN')
|
||||
branchName = os.getenv('INPUT_PUSH_BRANCH_NAME')
|
||||
showTimeZone = os.getenv('INPUT_SHOW_TIMEZONE')
|
||||
showProjects = os.getenv('INPUT_SHOW_PROJECTS')
|
||||
showEditors = os.getenv('INPUT_SHOW_EDITORS')
|
||||
@@ -574,7 +575,7 @@ if __name__ == '__main__':
|
||||
if new_readme != rdmd:
|
||||
try:
|
||||
repo.update_file(path=contents.path, message=commit_message,
|
||||
content=new_readme, sha=contents.sha, branch='master',
|
||||
content=new_readme, sha=contents.sha, branch=branchName,
|
||||
committer=committer)
|
||||
except:
|
||||
repo.update_file(path=contents.path, message=commit_message,
|
||||
|
||||
Reference in New Issue
Block a user