Skip to content

Commit

Permalink
Update workflow_id in utils/get_previous_daily_ci.py (huggingface…
Browse files Browse the repository at this point in the history
…#30695)

fix

Co-authored-by: ydshieh <[email protected]>
  • Loading branch information
2 people authored and zucchini-nlp committed May 10, 2024
1 parent 5532d40 commit 37ca3ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/get_previous_daily_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37ca3ce

Please sign in to comment.