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()) -