1
0
Fork 0
mirror of https://github.com/ArtemSBulgakov/buildozer-action.git synced 2024-08-16 10:09:52 +02:00

Set author info after changing directory

This commit is contained in:
Artem Bulgakov 2020-12-24 21:11:41 +03:00
parent 90ef5d4504
commit cd320cce61

View file

@ -58,12 +58,12 @@ author_name = subprocess.check_output(
author_email = subprocess.check_output( author_email = subprocess.check_output(
["git", "log", "-1", "--pretty=format:%ae"] ["git", "log", "-1", "--pretty=format:%ae"]
).decode("utf-8") ).decode("utf-8")
subprocess.check_call(["git", "config", "user.name", author_name])
subprocess.check_call(["git", "config", "user.email", author_email])
# Prepare for pushing # Prepare for pushing
os.chdir(data_repository_directory) os.chdir(data_repository_directory)
os.makedirs(directory, exist_ok=True) os.makedirs(directory, exist_ok=True)
subprocess.check_call(["git", "config", "user.name", author_name])
subprocess.check_call(["git", "config", "user.email", author_email])
# Ensure that there are no changes # Ensure that there are no changes
subprocess.check_call(["git", "pull", "origin", data_repository, "--ff-only"]) subprocess.check_call(["git", "pull", "origin", data_repository, "--ff-only"])