also this

This commit is contained in:
Minecon724 2024-06-18 13:35:37 +02:00
parent 3874459e4f
commit 387a6125e5
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -111,6 +111,11 @@ def write_metadata(channel: str, metadata: dict):
with open(filepath, 'w') as file:
file.write(metadata)
def commit_and_push(channel: str, version: str):
os.system('git add .')
os.system(f'git commit -m "[releaser] Release {version} on {channel}"')
os.system('git push')
# other
def confirm(prompt: str) -> bool:
@ -168,7 +173,10 @@ def main():
except FileNotFoundError:
pass
print("Done, don't forget to commit and push")
if confirm("Commit and push?"):
commit_and_push(channel, version)
print("Done")
if __name__ == "__main__":
main()