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