in automation/update-from-application-services.py [0:0]
def main():
args = parse_args()
version = VersionInfo(args.version)
tag = version.swift_version
if rev_exists(tag):
print(f"Tag {tag} already exists, quitting")
sys.exit(1)
update_source(version)
if not repo_has_changes():
print("No changes detected, quitting")
sys.exit(0)
subprocess.check_call([
"git",
"commit",
"--author",
"Firefox Sync Engineering<sync-team@mozilla.com>",
"--message",
f"Nightly auto-update ({version.swift_version})"
])
subprocess.check_call(["git", "tag", tag])
if args.push:
subprocess.check_call(["git", "push", args.remote])
subprocess.check_call(["git", "push", args.remote, tag])