Enrich Feishu daily digest with auto-refresh status.
Include Gitea web-daily/weekly/patch conclusions and Cloudflare Pages deploys; ship the refresh workflows so those signals exist. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -15,6 +15,7 @@ import sys
|
||||
from pathlib import Path
|
||||
|
||||
STASH = Path(os.environ.get("TEMP") or os.environ.get("TMP") or ".") / "climperor_feishu_wh.url"
|
||||
GITEA_STASH = Path(os.environ.get("TEMP") or os.environ.get("TMP") or ".") / "climperor_gitea.tok"
|
||||
|
||||
|
||||
def stash() -> None:
|
||||
@@ -40,6 +41,14 @@ def run(argv: list[str]) -> int:
|
||||
except OSError:
|
||||
pass
|
||||
os.environ["FEISHU_WEBHOOK_URL"] = url
|
||||
if GITEA_STASH.exists():
|
||||
tok = GITEA_STASH.read_text(encoding="utf-8").strip()
|
||||
try:
|
||||
GITEA_STASH.unlink()
|
||||
except OSError:
|
||||
pass
|
||||
if tok:
|
||||
os.environ["GITEA_TOKEN"] = tok
|
||||
# Import after env is set
|
||||
import notify_site_traffic as n
|
||||
|
||||
|
||||
Reference in New Issue
Block a user