From c388aba95ab6655ad425cc113c93484cac9f2012 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Tue, 31 Dec 2019 12:33:03 +0900 Subject: [PATCH] Add env override for repo path --- src/test_create_or_update_branch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test_create_or_update_branch.py b/src/test_create_or_update_branch.py index fb825cb..ba12c26 100644 --- a/src/test_create_or_update_branch.py +++ b/src/test_create_or_update_branch.py @@ -8,12 +8,15 @@ import sys import time +# Set git repo +repo_path = os.getenv("COUB_REPO_PATH", os.getcwd()) +repo = Repo(repo_path) + # Set git environment author_name = "github-actions[bot]" author_email = "41898282+github-actions[bot]@users.noreply.github.com" committer_name = "GitHub" committer_email = "noreply@github.com" -repo = Repo(os.getcwd()) repo.git.update_environment( GIT_AUTHOR_NAME=author_name, GIT_AUTHOR_EMAIL=author_email,