octokit.rest

Enable a workflow

Enables a workflow and sets the state of the workflow to active. 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.

Parameters

string The token will be passed in the authorization header.

string

string

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

Request

PUT https://api.github.com/repos///actions/workflows//enable
authorization: bearer undefined
accept: application/vnd.github.v3+json
user-agent: octokit.rest
content-length: 0


No response available

See documentation on GitHub developer guides