From 573470ba3f0b75ba465c1aff10467aa30a25c250 Mon Sep 17 00:00:00 2001 From: alyssa Date: Fri, 6 Sep 2024 16:28:49 +0900 Subject: [PATCH] test --- ci/run_ci.py | 2 +- ci/spawn_jobs.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/run_ci.py b/ci/run_ci.py index 0ab460fa..e2c340ee 100644 --- a/ci/run_ci.py +++ b/ci/run_ci.py @@ -64,7 +64,7 @@ def report_status(name, start_time, exit=None): print(f"{response_code} failed to update status {name}: {response_data}") def run_job(data): - subprocess.check_output(["git", "clone", must_get_env("REPO_URL")]) + subprocess.run(["git", "clone", must_get_env("REPO_URL")]) os.chdir(os.path.basename(must_get_env("REPO_URL"))) subprocess.run(["git", "checkout", must_get_env("GIT_SHA")]) diff --git a/ci/spawn_jobs.py b/ci/spawn_jobs.py index 839dd6f4..d504f654 100755 --- a/ci/spawn_jobs.py +++ b/ci/spawn_jobs.py @@ -69,6 +69,9 @@ def create_jobs(): "all_rs": ["bin_api", "bin_dispatch"], } + subprocess.run(["git", "clone", must_get_env("REPO_URL")]) + os.chdir(os.path.basename(must_get_env("REPO_URL"))) + now = must_get_env("GIT_SHA") before = must_get_env("OLD_SHA") changed_files = subprocess.check_output(["git", "diff", "--name-only", before, now])