Skip to main content

List Repository Workflows

Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo scope. GitHub Apps must have the actions:read permission to use this endpoint.

External Documentation

To learn more, visit the GitHub documentation.

Parameters

ParameterDescription
OwnerThe account owner of the repository. The name is not case sensitive.
PagePage number of the results to fetch.
Per PageThe number of results per page (max 100).
RepoThe name of the repository. The name is not case sensitive.
Return All PagesAutomatically fetch all resources, page by page.

Example Output

{
"value": {
"total_count": 2,
"workflows": [
{
"badge_url": "https://github.com/octo-org/octo-repo/workflows/CI/badge.svg",
"created_at": "2020-01-08T23:48:37.000-08:00",
"html_url": "https://github.com/octo-org/octo-repo/blob/master/.github/workflows/161335",
"id": 161335,
"name": "CI",
"node_id": "MDg6V29ya2Zsb3cxNjEzMzU=",
"path": ".github/workflows/blank.yaml",
"state": "active",
"updated_at": "2020-01-08T23:50:21.000-08:00",
"url": "https://api.github.com/repos/octo-org/octo-repo/actions/workflows/161335"
},
{
"badge_url": "https://github.com/octo-org/octo-repo/workflows/Linter/badge.svg",
"created_at": "2020-01-08T23:48:37.000-08:00",
"html_url": "https://github.com/octo-org/octo-repo/blob/master/.github/workflows/269289",
"id": 269289,
"name": "Linter",
"node_id": "MDE4OldvcmtmbG93IFNlY29uZGFyeTI2OTI4OQ==",
"path": ".github/workflows/linter.yaml",
"state": "active",
"updated_at": "2020-01-08T23:50:21.000-08:00",
"url": "https://api.github.com/repos/octo-org/octo-repo/actions/workflows/269289"
}
]
}
}

Workflow Library Example

List Repository Workflows with Github and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop