releaser: pretty format invocations
This commit is contained in:
parent
996b973533
commit
762080c11d
10
releaser.py
10
releaser.py
|
@ -38,10 +38,16 @@ path_surplus = Path(__file__).parent.joinpath("./surplus/surplus.py")
|
||||||
|
|
||||||
build_time = datetime.now(timezone(timedelta(hours=8))) # using SGT
|
build_time = datetime.now(timezone(timedelta(hours=8))) # using SGT
|
||||||
insert_build_branch: str = run(
|
insert_build_branch: str = run(
|
||||||
"git rev-parse --abbrev-ref HEAD", capture_output=True, text=True, shell=True
|
"git rev-parse --abbrev-ref HEAD",
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
shell=True,
|
||||||
).stdout.strip("\n")
|
).stdout.strip("\n")
|
||||||
insert_build_commit: str = run(
|
insert_build_commit: str = run(
|
||||||
"git rev-parse HEAD", capture_output=True, text=True, shell=True
|
"git rev-parse HEAD",
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
shell=True,
|
||||||
).stdout.strip("\n")
|
).stdout.strip("\n")
|
||||||
insert_build_datetime: str = repr(build_time).replace("datetime.", "")
|
insert_build_datetime: str = repr(build_time).replace("datetime.", "")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue