mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-05 05:40:05 +06:00
update utils/notification_service.py
for AMD vs Nvidia (#38563)
update Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
3c995c1fdc
commit
6085cded38
@ -57,8 +57,8 @@ def get_last_daily_ci_run(token, workflow_run_id=None, workflow_id=None, commit_
|
||||
if commit_sha in [None, ""] and run["status"] == "completed":
|
||||
workflow_run = run
|
||||
break
|
||||
# if `commit_sha` is specified, and `workflow_run["head_sha"]` matches it, return it.
|
||||
elif commit_sha not in [None, ""] and run["head_sha"] == commit_sha:
|
||||
# if `commit_sha` is specified, return the latest completed run with `workflow_run["head_sha"]` matching the specified sha.
|
||||
elif commit_sha not in [None, ""] and run["head_sha"] == commit_sha and run["status"] == "completed":
|
||||
workflow_run = run
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user