Add autoupdate.py
This commit is contained in:
1 parent
8276754a1c
commit
e0f8448ed9
1 file changed
-1
@@ -51,7 +51,6 @@ if pre_hash != post_hash:
|
|||||||
if subprocess.call(['git', 'diff-index', '--quiet', 'HEAD', '--', EXTRACTED_ISO_DIR]) == 1:
|
if subprocess.call(['git', 'diff-index', '--quiet', 'HEAD', '--', EXTRACTED_ISO_DIR]) == 1:
|
||||||
print('---- Commit & push')
|
print('---- Commit & push')
|
||||||
subprocess.check_call(['git', 'commit', '-m', 'Nightly update (ISO SHA-1 %s)' % post_hash[0:7]])
|
subprocess.check_call(['git', 'commit', '-m', 'Nightly update (ISO SHA-1 %s)' % post_hash[0:7]])
|
||||||
subprocess.check_call(['git', 'push', 'origin', 'master'])
|
|
||||||
else:
|
else:
|
||||||
print('---- No changes in source tree')
|
print('---- No changes in source tree')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user