From 37ca3ceea56ed17648cccecb8b52a7b400ee8ba0 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Tue, 7 May 2024 16:58:50 +0200 Subject: [PATCH] Update `workflow_id` in `utils/get_previous_daily_ci.py` (#30695) fix Co-authored-by: ydshieh --- utils/get_previous_daily_ci.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/get_previous_daily_ci.py b/utils/get_previous_daily_ci.py index 4e4cb0a8c10d5c..975c6f33982013 100644 --- a/utils/get_previous_daily_ci.py +++ b/utils/get_previous_daily_ci.py @@ -14,8 +14,11 @@ def get_daily_ci_runs(token, num_runs=7): if token is not None: headers = {"Accept": "application/vnd.github+json", "Authorization": f"Bearer {token}"} - # The id of a workflow (not of a workflow run) - workflow_id = "636036" + # The id of a workflow (not of a workflow run). + # From a given workflow run (where we have workflow run id), we can get the workflow id by going to + # https://api.github.com/repos/huggingface/transformers/actions/runs/{workflow_run_id} + # and check the `workflow_id` key. + workflow_id = "90575235" url = f"https://api.github.com/repos/huggingface/transformers/actions/workflows/{workflow_id}/runs" # On `main` branch + event being `schedule` + not returning PRs + only `num_runs` results