create_workflow
Automate GitHub repository processes by generating a new GitHub Actions workflow file. Specify triggers, jobs, and file path to streamline CI/CD pipelines.
Instructions
Create a new GitHub Actions workflow file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch | No | Branch to create the workflow on | main |
commitMessage | No | Commit message | Add GitHub Actions workflow |
jobs | Yes | Jobs configuration | |
name | Yes | Workflow name - should be descriptive and related to the workflow's purpose | |
on | Yes | Trigger events (e.g., {push: {branches: ['main']}, pull_request: {}}) | |
owner | Yes | Repository owner | |
path | Yes | Path for the workflow file (e.g., '.github/workflows/ci.yml') | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"properties": {
"branch": {
"default": "main",
"description": "Branch to create the workflow on",
"type": "string"
},
"commitMessage": {
"default": "Add GitHub Actions workflow",
"description": "Commit message",
"type": "string"
},
"jobs": {
"description": "Jobs configuration",
"type": "object"
},
"name": {
"description": "Workflow name - should be descriptive and related to the workflow's purpose",
"type": "string"
},
"on": {
"description": "Trigger events (e.g., {push: {branches: ['main']}, pull_request: {}})",
"type": "object"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"path": {
"description": "Path for the workflow file (e.g., '.github/workflows/ci.yml')",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"path",
"name",
"on",
"jobs"
],
"type": "object"
}