Method: Octokit::Client::ActionsWorkflows#workflow_enable

Defined in:
lib/octokit/client/actions_workflows.rb

#workflow_enable(repo, id, options = {}) ⇒ Boolean

Enable a workflow

Parameters:

  • repo (Integer, String, Repository, Hash)

    A GitHub repository

  • id (Integer, String)

    Id or file name of the workflow

Returns:

  • (Boolean)

    True if workflow was enabled, false otherwise

See Also:



52
53
54
# File 'lib/octokit/client/actions_workflows.rb', line 52

def workflow_enable(repo, id, options = {})
  boolean_from_response :put, "#{Repository.path repo}/actions/workflows/#{id}/enable", options
end