From ecfe471ee7f28decaf55ba3794de0bdabe940b94 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 13 Jul 2026 15:07:31 +0800 Subject: [PATCH] =?UTF-8?q?style:=20black=E6=A0=BC=E5=BC=8F=E5=8C=96script?= =?UTF-8?q?s=E7=9B=AE=E5=BD=95=E4=B8=8B=E7=9A=84CI=E8=BE=85=E5=8A=A9?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ci_notify_failure.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/ci_notify_failure.py b/scripts/ci_notify_failure.py index 61a662592..525cf506e 100644 --- a/scripts/ci_notify_failure.py +++ b/scripts/ci_notify_failure.py @@ -11,7 +11,9 @@ def main() -> int: webhook = os.environ.get("CI_NOTIFY_WEBHOOK", "") if not 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 failed_job = os.environ.get("FAILED_JOB", "Unknown Job") @@ -81,4 +83,3 @@ def main() -> int: if __name__ == "__main__": sys.exit(main()) -