From 879f6b67e9839c8c04f6e1653ee2cc1d80a76990 Mon Sep 17 00:00:00 2001 From: Ian Chua Date: Thu, 24 Sep 2026 19:56:51 +0800 Subject: [PATCH] fix: use --method GET --- .github/workflows/ofl-ota-cronjob.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ofl-ota-cronjob.yml b/.github/workflows/ofl-ota-cronjob.yml index e60e2b3971..fa267270b5 100644 --- a/.github/workflows/ofl-ota-cronjob.yml +++ b/.github/workflows/ofl-ota-cronjob.yml @@ -70,7 +70,11 @@ jobs: # so its history is the real per-branch checkpoint. It also means a # failed publish naturally gets retried tomorrow: the checkpoint only # advances on a run that actually succeeded. - since="$(gh api "repos/${{ github.repository }}/actions/workflows/post_merge_profiles.yml/runs" \ + # --method GET is required, not cosmetic: gh api defaults to POST + # whenever -f fields are present unless a method is given + # explicitly, and POST on this list-runs endpoint 404s - confirmed + # on real Actions infrastructure, not just reasoned about. + since="$(gh api --method GET "repos/${{ github.repository }}/actions/workflows/post_merge_profiles.yml/runs" \ -f status=success -f branch="$branch" -f per_page=1 \ --jq '.workflow_runs[0].run_started_at // empty')"