Improve update check

This commit is contained in:
Xiaonan Shen 2021-01-07 17:34:32 +08:00
parent a470481de1
commit 28844b308b
No known key found for this signature in database
GPG Key ID: 211BF560D12417F5

View File

@ -29,7 +29,7 @@ def check_version(directory, new_version):
f.write(new_version) f.write(new_version)
# commit # commit
result = os.system(f"git config --local user.email 'actions@github.com' \ result = os.system(f"git config --local user.email 'actions@github.com' \
&& git config --local user.name 'Github Action' \ && git config --local user.name 'GitHub Actions' \
&& git add {directory}/VERSION \ && git add {directory}/VERSION \
&& git commit -m 'Bump {directory} version to {new_version}'") && git commit -m 'Bump {directory} version to {new_version}'")
if result != 0: if result != 0: