Get a workflow
Gets a specific workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. 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.
/repos/{owner}/{repo}/actions/workflows/{workflow_id}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
- workflow_id pathrequired
The ID of the workflow. You can also pass the workflow file name as a string.
Responses
Response
Example: https://github.com/actions/setup-ruby/workflows/CI/badge.svg
Example: 2019-12-06T14:20:20.000Z
Example: 2019-12-06T14:20:20.000Z
Example: https://github.com/actions/setup-ruby/blob/master/.github/workflows/ruby.yaml
Example: 5
Example: CI
Example: MDg6V29ya2Zsb3cxMg==
Example: ruby.yaml
Example: active
Example: 2019-12-06T14:20:20.000Z
Example: https://api.github.com/repos/actions/setup-ruby/workflows/5