secret_name parameter
Delete a repository secret
Deletes a secret in a repository using the secret name. You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the secrets
repository permission to use this endpoint.
Path Parameters
Response
204
Response
Response
Path Parameters
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.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 application/json
Response
Response
A GitHub Actions workflow
Show Child Parameters
Path Parameters
Query Parameters
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.
Path Parameters
One Of
The ID of the workflow. You can also pass the workflow file name as a string.
Response
200 application/json
Response
Response
Workflow
A GitHub Actions workflow
Example:5
Example:MDg6V29ya2Zsb3cxMg==
Example:CI
Example:ruby.yaml
Allowed values:activedeleteddisabled_forkdisabled_inactivitydisabled_manually
Example:active
Example:2019-12-06T14:20:20.000Z
Example:2019-12-06T14:20:20.000Z
Example:https://api.github.com/repos/actions/setup-ruby/workflows/5
Example:https://github.com/actions/setup-ruby/blob/master/.github/workflows/ruby.yaml
Example:https://github.com/actions/setup-ruby/workflows/CI/badge.svg
Example:2019-12-06T14:20:20.000Z
Path Parameters
Disable a workflow
Disables a workflow and sets the state
of the workflow to disabled_manually
. You can replace workflow_id
with the workflow file name. For example, you could use main.yaml
.
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint.
Path Parameters
One Of
The ID of the workflow. You can also pass the workflow file name as a string.
Response
204
Response
Response
Path Parameters
Create a workflow dispatch event
You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace workflow_id
with the workflow file name. For example, you could use main.yaml
.
You must configure your GitHub Actions workflow to run when the workflow_dispatch
webhook event occurs. The inputs
are configured in the workflow file. For more information about how to configure the workflow_dispatch
event in the workflow file, see “Events that trigger workflows.”
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the actions:write
permission to use this endpoint. For more information, see “Creating a personal access token for the command line.”
Path Parameters
One Of
The ID of the workflow. You can also pass the workflow file name as a string.
Body
application/json
Body
The git reference for the workflow. The reference can be a branch or tag name.
Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when inputs
are omitted.
Response
204
Response
Response