ci: migrate hub to gh
https://github.com/actions/runner-images/issues/8362
This commit is contained in:
parent
85a0a0085b
commit
f439a6750a
|
|
@ -108,9 +108,9 @@ def main():
|
||||||
filenames.append(update_main_ics(now.year - 4, now.year + 1))
|
filenames.append(update_main_ics(now.year - 4, now.year + 1))
|
||||||
print("")
|
print("")
|
||||||
|
|
||||||
subprocess.run(["hub", "add", *filenames], check=True)
|
subprocess.run(["git", "add", *filenames], check=True)
|
||||||
diff = subprocess.run(
|
diff = subprocess.run(
|
||||||
["hub", "diff", "--stat", "--cached", "*.json", "*.ics"],
|
["git", "diff", "--stat", "--cached", "*.json", "*.ics"],
|
||||||
check=True,
|
check=True,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
encoding="utf-8",
|
encoding="utf-8",
|
||||||
|
|
@ -125,7 +125,7 @@ def main():
|
||||||
|
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
"hub",
|
"git",
|
||||||
"commit",
|
"commit",
|
||||||
"-m",
|
"-m",
|
||||||
"chore(release): update holiday data",
|
"chore(release): update holiday data",
|
||||||
|
|
@ -134,7 +134,7 @@ def main():
|
||||||
],
|
],
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
subprocess.run(["hub", "push"], check=True)
|
subprocess.run(["git", "push"], check=True)
|
||||||
|
|
||||||
tag = now.strftime("%Y.%m.%d")
|
tag = now.strftime("%Y.%m.%d")
|
||||||
temp_note_fd, temp_note_name = mkstemp()
|
temp_note_fd, temp_note_name = mkstemp()
|
||||||
|
|
@ -146,14 +146,13 @@ def main():
|
||||||
|
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
"hub",
|
"gh",
|
||||||
"release",
|
"release",
|
||||||
"create",
|
"create",
|
||||||
"-F",
|
"-F",
|
||||||
temp_note_name,
|
temp_note_name,
|
||||||
"-a",
|
|
||||||
f"{zip_path}#JSON数据",
|
|
||||||
tag,
|
tag,
|
||||||
|
f"{zip_path}#JSON数据",
|
||||||
],
|
],
|
||||||
check=True,
|
check=True,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user