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 |