Actions36
- File Actions
- Issue Actions
- Organization Actions
- Release Actions
- Repository Actions
- Review Actions
- User Actions
- Workflow Actions
Workflow → Enable
AI-generatedOverview
This node operation enables a specific GitHub Actions workflow in a given repository. It is useful for automating the activation of workflows that may have been disabled or need to be programmatically turned on as part of a CI/CD pipeline or repository management process. For example, enabling a deployment workflow after a successful code merge.
Use Case Examples
- Enable a GitHub Actions workflow in the 'n8n-io/n8n' repository owned by 'n8n-io'.
- Programmatically enable a workflow identified by its file name or ID in a repository to automate CI/CD processes.
Properties
| Name | Meaning |
|---|---|
| Repository Owner | The owner of the GitHub repository where the workflow resides. This can be selected from a list, provided as a URL, or entered by name. |
| Repository Name | The name of the GitHub repository containing the workflow. This can be selected from a list, provided as a URL, or entered by name. |
| Workflow | The specific GitHub Actions workflow to enable. This can be selected from a list, specified by file name, or by workflow ID. |
Output
JSON
json- The JSON response from the GitHub API confirming the workflow has been enabled or containing workflow details.
Dependencies
- Requires GitHub App API credentials including App ID, Installation ID, and private key for authentication.
Troubleshooting
- Ensure the workflow ID or file name is correct; a 404 error indicates the workflow was not found in the specified repository.
- Verify that the repository owner and repository name are correctly specified and accessible by the GitHub App.
- Check that the GitHub App has the necessary permissions to enable workflows in the target repository.
Links
- GitHub API - Enable a Workflow - Official GitHub API documentation for enabling a workflow in a repository.