GitHub App icon

GitHub App

Consume GitHub API using GitHub App authentication

Workflow → Get Usage

AI-generated

Overview

This node operation retrieves the usage statistics of a specific GitHub Actions workflow within a repository. It is useful for monitoring and analyzing the execution time and resource consumption of workflows in a GitHub repository. For example, a user can get detailed timing information about a workflow to optimize its performance or track usage over time.

Use Case Examples

  1. Get usage data for a GitHub Actions workflow to monitor its execution time and resource usage.
  2. Analyze workflow usage to identify bottlenecks or optimize CI/CD pipelines.

Properties

Name Meaning
Repository Owner The owner of the GitHub repository where the workflow is located. This can be specified by selecting from a list, providing a URL, or entering the owner name directly.
Repository Name The name of the GitHub repository containing the workflow. This can be selected from a list, provided as a URL, or entered by name.
Workflow The specific GitHub Actions workflow to get usage data for. It can be selected from a list, specified by file name, or by workflow ID.

Output

JSON

  • timing - The usage timing data of the specified GitHub Actions workflow, including execution duration and resource consumption details.

Dependencies

  • GitHub API access via GitHub App authentication

Troubleshooting

  • Ensure the repository owner, repository name, and workflow ID or file name are correctly specified to avoid 'workflow not found' errors.
  • Check that the GitHub App has the necessary permissions to access workflow usage data in the repository.
  • If the API returns a 404 error, verify that the workflow exists and the parameters are correct.

Links

Discussion