Updated code to do commit only if readme changed
This commit is contained in:
parent
66fb6bbc52
commit
8e15ddefda
3
main.py
3
main.py
@ -53,5 +53,6 @@ if __name__ == '__main__':
|
||||
stats = getStats()
|
||||
rdmd = decodeReadme(contents.content)
|
||||
newreadme = generatenewReadme(stats=stats, readme=rdmd)
|
||||
repo.update_file(path=contents.path, message="Updated with Dev Metrics",
|
||||
if newreadme != rdmd:
|
||||
repo.update_file(path=contents.path, message="Updated with Dev Metrics",
|
||||
content=newreadme, sha=contents.sha, branch="master")
|
||||
|
Loading…
x
Reference in New Issue
Block a user