File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,21 @@ runs:
60
60
BRANCH_NAME="feat/mcp-server-updated/$(date +%Y-%m-%d)--$(date +%H-%M-%S)"
61
61
git checkout -b $BRANCH_NAME
62
62
63
+ # Determine MCP directory location
64
+ if [[ "${{ inputs.input_directory }}" == "." ]] || [[ -z "${{ inputs.input_directory }}" ]]; then
65
+ MCP_DIR="MCP"
66
+ else
67
+ MCP_DIR="${{ inputs.input_directory }}/MCP"
68
+ fi
69
+
63
70
# Create MCP directory if it doesn't exist
64
- mkdir -p MCP
71
+ mkdir -p "$MCP_DIR"
65
72
66
73
# Copy generated files
67
- cp -r generated-mcp/* MCP/
74
+ cp -r generated-mcp/* "$MCP_DIR/"
68
75
69
76
# Commit and push
70
- git add MCP
77
+ git add "$MCP_DIR"
71
78
git commit -m "feat: codeglide Auto-generated MCP server code
72
79
73
80
Triggered by: @${{ github.actor }}"
@@ -114,4 +121,3 @@ runs:
114
121
name : generated-mcp
115
122
path : generated-mcp/
116
123
117
-
You can’t perform that action at this time.
0 commit comments