Get-GitHubActionsWorkflowRuns

SYNOPSIS

List workflow runs for a workflow

SYNTAX

__AllParameterSets

Get-GitHubActionsWorkflowRuns [-Owner] <string> [-Repo] <string> [-WorkflowId] <Object>
 [-Actor <string>] [-Branch <string>] [-QueryEvent <string>] [-Status <string>] [-PerPage <long>]
 [-Page <long>] [-Created <datetime>] [-ExcludePullRequests] [-CheckSuiteId <long>]
 [-HeadSha <string>] [-AllResults] [-Accept <string>]

ALIASES

This cmdlet has the following aliases,

  • Get-GHActionsWorkflowRuns

DESCRIPTION

The Get-GitHubActionsWorkflowRuns cmdlet invokes the GET method of the /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs endpoint (List workflow runs for a workflow)

List all workflow runs for a workflow. You can replace ‘workflow_id’ with the workflow file name. For example, you could use ‘main.yaml’. You can use parameters to narrow the list of results. For more information about using parameters, see Parameters (https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).

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.

This endpoint will return up to 1,000 results for each search when using the following parameters: ‘actor’, ‘branch’, ‘check_suite_id’, ‘created’, ‘event’, ‘head_sha’, ‘status’.

Endpoint: GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs API version: 2026-03-10

EXAMPLES

EXAMPLE 1

Get-GitHubActionsWorkflowRuns -Owner 'octocat' -Repo 'Hello-World' -WorkflowId @{ key = 'value' }

Invokes GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs

EXAMPLE 2

Get-GitHubActionsWorkflowRuns -Owner 'octocat' -Repo 'Hello-World' -WorkflowId @{ key = 'value' } -AllResults

Returns the items of every page

PARAMETERS

-Accept

The Accept header (media type) of the request Default value: application/vnd.github+json

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Actor

Returns someone’s workflow runs. Use the login for the user who created the ‘push’ associated with the check suite or workflow run.

Query parameter [ actor ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-AllResults

Follows the pagination links & returns the items of every page. 100 items are requested per page unless the per page parameter is used

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Branch

Returns workflow runs associated with a branch. Use the name of the branch of the ‘push’.

Query parameter [ branch ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-CheckSuiteId

Returns workflow runs with the ‘check_suite_id’ that you specify.

Query parameter [ check_suite_id ]

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Created

Returns workflow runs created within the given date-time range. For more information on the syntax, see “Understanding the search syntax (https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates).”

Query parameter [ created ]

Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-ExcludePullRequests

If ‘true’ pull requests are omitted from the response (empty array).

Query parameter [ exclude_pull_requests ]

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-HeadSha

Only returns workflow runs that are associated with the specified ‘head_sha’.

Query parameter [ head_sha ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Owner

The account owner of the repository. The name is not case sensitive.

Path parameter [ owner ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Page

The page number of the results to fetch. For more information, see “Using pagination in the REST API (https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).”

Query parameter [ page ]

Default value: 1

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PerPage

The number of results per page (max 100). For more information, see “Using pagination in the REST API (https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).”

Query parameter [ per_page ]

Default value: 30

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-QueryEvent

Returns workflow run triggered by the event you specify. For example, ‘push’, ‘pull_request’ or ‘issue’. For more information, see “Events that trigger workflows (https://docs.github.com/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows).”

Query parameter [ event ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Repo

The name of the repository without the ‘.git’ extension. The name is not case sensitive.

Path parameter [ repo ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Status

Returns workflow runs with the check run ‘status’ or ‘conclusion’ that you specify. For example, a conclusion can be ‘success’ or a status can be ‘in_progress’. Only GitHub Actions can set a status of ‘waiting’, ‘pending’, or ‘requested’.

Query parameter [ status ]

Allowed values: ‘completed’, ‘action_required’, ‘cancelled’, ‘failure’, ‘neutral’, ‘skipped’, ‘stale’, ‘success’, ‘timed_out’, ‘in_progress’, ‘queued’, ‘requested’, ‘waiting’, ‘pending’

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-WorkflowId

The ID of the workflow. You can also pass the workflow file name as a string.

Path parameter [ workflow_id ]

Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Objects with properties named like the path parameters can be piped to this function

{{ Fill in the Description }}

System.String

{{ Fill in the Description }}

System.Object

{{ Fill in the Description }}

OUTPUTS

The response of the GitHub API (objects

{{ Fill in the Description }}

NOTES

OperationId: actions/list-workflow-runs Category: actions / workflow-runs