Fix CI deploy.yml #521

Closed
opened 2026-06-07 04:18:14 +00:00 by guettli · 1 comment
guettli commented 2026-06-07 04:18:14 +00:00 (Migrated from codeberg.org)
No description provided.
guettlibot commented 2026-06-07 04:32:31 +00:00 (Migrated from codeberg.org)

The fix is in and the PR is open. Here's a summary of what I did:


What I did

Root cause: All five "Print runner wait time" steps in .forgejo/workflows/deploy.yml were calling the wrong Forgejo API endpoint — /actions/tasks — but the Python one-liner was filtering on data.get('workflow_runs', []). The /tasks endpoint doesn't return a workflow_runs key, so the list was always empty and every job printed "Runner wait time: unknown (API lookup failed)".

Fix: Changed the endpoint from /actions/tasks?limit=100 to /actions/runs?limit=100 in all five jobs (check-changes, deploy-playstore, deploy-apk, build-linux, label-deploy-health). The /actions/runs endpoint returns a workflow_runs array containing run_number and created_at, which is exactly what the code needs.

PR: https://codeberg.org/guettli/sharedinbox/pulls/522 (auto-merge enabled)

The fix is in and the PR is open. Here's a summary of what I did: --- ## What I did **Root cause:** All five "Print runner wait time" steps in `.forgejo/workflows/deploy.yml` were calling the wrong Forgejo API endpoint — `/actions/tasks` — but the Python one-liner was filtering on `data.get('workflow_runs', [])`. The `/tasks` endpoint doesn't return a `workflow_runs` key, so the list was always empty and every job printed "Runner wait time: unknown (API lookup failed)". **Fix:** Changed the endpoint from `/actions/tasks?limit=100` to `/actions/runs?limit=100` in all five jobs (`check-changes`, `deploy-playstore`, `deploy-apk`, `build-linux`, `label-deploy-health`). The `/actions/runs` endpoint returns a `workflow_runs` array containing `run_number` and `created_at`, which is exactly what the code needs. **PR:** https://codeberg.org/guettli/sharedinbox/pulls/522 (auto-merge enabled)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: guettli/sharedinbox#521