feat: print issue, action, sha to stdout
This commit is contained in:
parent
263c3383bb
commit
9aa04f5ac1
|
@ -1,3 +1,4 @@
|
||||||
|
import json
|
||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -495,6 +496,11 @@ def joj3_all(
|
||||||
) -> None:
|
) -> None:
|
||||||
set_settings(Settings(_env_file=env_path))
|
set_settings(Settings(_env_file=env_path))
|
||||||
set_logger(settings.stderr_log_level, diagnose=False, backtrace=False)
|
set_logger(settings.stderr_log_level, diagnose=False, backtrace=False)
|
||||||
|
res = {
|
||||||
|
"issue": 0,
|
||||||
|
"action": int(run_number) if run_number != "" else 0,
|
||||||
|
"sha": commit_hash,
|
||||||
|
}
|
||||||
logger.info(f"debug log to file: {settings.log_file_path}")
|
logger.info(f"debug log to file: {settings.log_file_path}")
|
||||||
gitea_actions_url = (
|
gitea_actions_url = (
|
||||||
f"https://{settings.gitea_domain_name}{settings.gitea_suffix}/"
|
f"https://{settings.gitea_domain_name}{settings.gitea_suffix}/"
|
||||||
|
@ -545,6 +551,8 @@ def joj3_all(
|
||||||
joj3_issue.number,
|
joj3_issue.number,
|
||||||
body={"title": title, "body": comment},
|
body={"title": title, "body": comment},
|
||||||
)
|
)
|
||||||
|
res["issue"] = joj3_issue.number
|
||||||
|
print(json.dumps(res))
|
||||||
if skip_scoreboard and skip_failed_table:
|
if skip_scoreboard and skip_failed_table:
|
||||||
return
|
return
|
||||||
lock_file_path = os.path.join(
|
lock_file_path = os.path.join(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user