Get-GitHubWorkflowRun¶
SYNOPSIS¶
List workflow runs for a repository or a workflow
SYNTAX¶
__AllParameterSets (Default)¶
Get-GitHubWorkflowRun -Owner <string> -Repository <string> [-Actor <string>] [-Branch <string>]
[-Event <string>] [-Status <string>] [-Created <datetime>] [-ExcludePullRequests]
[-CheckSuiteID <ulong>] [-HeadSHA <string>] [-PerPage <int>] [-Context <Object>]
[<CommonParameters>]
ByID¶
Get-GitHubWorkflowRun -Owner <string> -Repository <string> -ID <string> [-Actor <string>]
[-Branch <string>] [-Event <string>] [-Status <string>] [-Created <datetime>]
[-ExcludePullRequests] [-CheckSuiteID <ulong>] [-HeadSHA <string>] [-PerPage <int>]
[-Context <Object>] [<CommonParameters>]
ByName¶
Get-GitHubWorkflowRun -Owner <string> -Repository <string> -Name <string> [-Actor <string>]
[-Branch <string>] [-Event <string>] [-Status <string>] [-Created <datetime>]
[-ExcludePullRequests] [-CheckSuiteID <ulong>] [-HeadSHA <string>] [-PerPage <int>]
[-Context <Object>] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
Lists all workflow runs for a repository or a workflow.
You can use parameters to narrow the list of results.
For more information about using
parameters, see 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.
EXAMPLES¶
EXAMPLE 1¶
Get-GitHubWorkflowRun -Owner 'owner' -Repository 'repo'
Lists all workflow runs for a repository.
EXAMPLE 2¶
Get-GitHubWorkflowRun -Owner 'owner' -Repository 'repo' -Actor 'octocat' -Branch 'main' -Event 'push' -Status 'success'
Lists all workflow runs for a repository with the specified actor, branch, event, and status.
EXAMPLE 3¶
Get-GitHubWorkflowRun -Owner 'octocat' -Repository 'Hello-World' -ID '42'
Gets all workflow runs for the workflow with the ID 42 in the repository Hello-World owned by octocat.
EXAMPLE 4¶
Get-GitHubWorkflowRun -Owner 'octocat' -Repository 'Hello-World' -Name 'nightly.yml' -Actor 'octocat' -Branch 'main' -Event 'push' -Status 'success'
Gets all workflow runs for the workflow with the name nightly.yml in the repository Hello-World owned by octocat that were triggered by
the user octocat on the branch main and have the status success.
PARAMETERS¶
-Actor¶
Returns someone's workflow runs. Use the login for the user who created the push associated with the check suite or workflow run.
Type: System.String
DefaultValue: ''
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.
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.
Type: System.Nullable`1[System.UInt64]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Context¶
The context to run the command in. Used to get the details for the API call. Can be either a string or a GitHubContext object.
Type: System.Object
DefaultValue: ''
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."
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Event¶
Returns workflow run triggered by the event you specify.
For example, push, pull_request or issue.
For more information, see
"Events that trigger workflows."
Type: System.String
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).
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.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ID¶
The ID of the workflow. You can also pass the workflow filename as a string.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByID
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name¶
The name of the workflow.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByName
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Owner¶
The account owner of the repository. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PerPage¶
The number of results per page (max 100).
Type: System.Nullable`1[System.Int32]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Repository¶
The name of the repository. The name is not case sensitive.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
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.
Can be one of: completed, action_required, cancelled, failure, neutral, skipped, stale, success, timed_out, in_progress,
queued, requested, waiting, pending.
[ValidateSet('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: ''
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¶
GitHubWorkflow¶
{{ Fill in the Description }}
System.String¶
{{ Fill in the Description }}
OUTPUTS¶
GitHubWorkflowRun¶
{{ Fill in the Description }}
NOTES¶
List workflow runs for a workflow List workflow runs for a repository