-
Notifications
You must be signed in to change notification settings - Fork 66.1k
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-workflow-run-usage
What part(s) of the article would you like to see updated?
Get workflow run usage
⚠️ WarningThis endpoint is in the process of closing down. Refer to "Actions Get workflow usage and Get workflow run usage endpoints closing down" for more information.
...
Anyone with read access to the repository can use this endpoint.
Additional information
As part of the ongoing transition of Enterprise customers and Team plan customers to our new billing platform, the Actions Get workflow usage and Get workflow run usage endpoints will be closing down. The transition of Enterprise and Team plan customers to the new billing platform will complete by April 1, 2025.
If the API was gone as of April 1, 2025, then why is it still documented in https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-workflow-run-usage ??
I see that it's also documented for GHEC:
https://docs.github.com/en/enterprise-cloud@latest/rest/actions/workflow-runs?apiVersion=2022-11-28#get-workflow-run-usage
But it doesn't appear present in any version of GHES.
A quick check shows that the api appears to still work:
gh api /repos/check-spelling-sandbox/nyc/actions/runs/22286685153/timing{
"billable": {
"UBUNTU": {
"total_ms": 0,
"jobs": 2,
"job_runs": [
{
"job_id": 64466301047,
"duration_ms": 0
},
{
"job_id": 64466301057,
"duration_ms": 0
}
]
},
"WINDOWS": {
"total_ms": 0,
"jobs": 1,
"job_runs": [
{
"job_id": 64466301065,
"duration_ms": 0
}
]
}
},
"run_duration_ms": 191000
}