mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 10:40:12 +00:00
test
This commit is contained in:
parent
9892cd9a3f
commit
573470ba3f
2 changed files with 4 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ def report_status(name, start_time, exit=None):
|
||||||
print(f"{response_code} failed to update status {name}: {response_data}")
|
print(f"{response_code} failed to update status {name}: {response_data}")
|
||||||
|
|
||||||
def run_job(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")))
|
os.chdir(os.path.basename(must_get_env("REPO_URL")))
|
||||||
subprocess.run(["git", "checkout", must_get_env("GIT_SHA")])
|
subprocess.run(["git", "checkout", must_get_env("GIT_SHA")])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,9 @@ def create_jobs():
|
||||||
"all_rs": ["bin_api", "bin_dispatch"],
|
"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")
|
now = must_get_env("GIT_SHA")
|
||||||
before = must_get_env("OLD_SHA")
|
before = must_get_env("OLD_SHA")
|
||||||
changed_files = subprocess.check_output(["git", "diff", "--name-only", before, now])
|
changed_files = subprocess.check_output(["git", "diff", "--name-only", before, now])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue