Closed yarikoptic closed 1 year ago
This change is also needed in order for the daily report e-mail to include workflow_dispatch
builds:
diff --git a/.github/workflows/tools/daily-status.py b/.github/workflows/tools/daily-status.py
index c21da03d0e..a98d571013 100644
--- a/.github/workflows/tools/daily-status.py
+++ b/.github/workflows/tools/daily-status.py
@@ -166,7 +166,7 @@ def main():
for wfname in WORKFLOWS:
wf = wfrepo.get_workflow(wfname)
for run in wf.get_runs():
- if run.status != "completed" or run.event != "schedule":
+ if run.status != "completed" or run.event not in ("schedule", "workflow_dispatch"):
continue
dt = ensure_aware(run.created_at)
if dt <= cutoff:
all good now @jwodder ?
@yarikoptic Yes.
I've not tried. Might need a thoroughly careful review ;)