style: black格式化scripts目录下的CI辅助脚本
This commit is contained in:
@@ -11,7 +11,9 @@ def main() -> int:
|
|||||||
webhook = os.environ.get("CI_NOTIFY_WEBHOOK", "")
|
webhook = os.environ.get("CI_NOTIFY_WEBHOOK", "")
|
||||||
if not webhook:
|
if not webhook:
|
||||||
print("未配置 CI_NOTIFY_WEBHOOK,跳过通知")
|
print("未配置 CI_NOTIFY_WEBHOOK,跳过通知")
|
||||||
print("如需启用,请在仓库 Settings -> Secrets and variables -> Actions 中添加 CI_NOTIFY_WEBHOOK")
|
print(
|
||||||
|
"如需启用,请在仓库 Settings -> Secrets and variables -> Actions 中添加 CI_NOTIFY_WEBHOOK"
|
||||||
|
)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
failed_job = os.environ.get("FAILED_JOB", "Unknown Job")
|
failed_job = os.environ.get("FAILED_JOB", "Unknown Job")
|
||||||
@@ -81,4 +83,3 @@ def main() -> int:
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user