Skip to content

Commit 3f25709

Browse files
authored
Create main.yml
1 parent b5c0604 commit 3f25709

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: codeglide MCP gen commit/PR
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
input_directory:
7+
description: 'Directory containing API source code (relative to workspace)'
8+
type: string
9+
required: false
10+
default: '.'
11+
create_pr:
12+
description: 'Create PR with generated code'
13+
type: boolean
14+
required: false
15+
default: false
16+
create_branch_and_commit:
17+
description: 'Create branch and commit with generated code'
18+
type: boolean
19+
required: false
20+
default: false
21+
# Add permissions
22+
permissions:
23+
contents: write
24+
pull-requests: write
25+
jobs:
26+
generate:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: codeglide MCP generator
31+
uses: CodeGlide/[email protected]
32+
with:
33+
input_directory: ${{ inputs.input_directory }}
34+
create_pr: ${{ inputs.create_pr }}
35+
create_branch_and_commit: ${{ inputs.create_branch_and_commit }}

0 commit comments

Comments
 (0)