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:
parent
90ef5d4504
commit
cd320cce61
1 changed files with 2 additions and 2 deletions
|
@ -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"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue