Function actions_slash_get_workflow_run_usage

Source
pub async fn actions_slash_get_workflow_run_usage(
    configuration: &Configuration,
    owner: &str,
    repo: &str,
    run_id: i32,
) -> Result<WorkflowRunUsage, Error<ActionsSlashGetWorkflowRunUsageError>>
Expand description

Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "Managing billing for GitHub Actions". Anyone with read access to the repository can use this endpoint. OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with a private repository.