Skip to content

Commit 104f329

Browse files
authored
Update action.yml
1 parent b6f2478 commit 104f329

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

action.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,21 @@ runs:
6060
BRANCH_NAME="feat/mcp-server-updated/$(date +%Y-%m-%d)--$(date +%H-%M-%S)"
6161
git checkout -b $BRANCH_NAME
6262
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+
6370
# Create MCP directory if it doesn't exist
64-
mkdir -p MCP
71+
mkdir -p "$MCP_DIR"
6572
6673
# Copy generated files
67-
cp -r generated-mcp/* MCP/
74+
cp -r generated-mcp/* "$MCP_DIR/"
6875
6976
# Commit and push
70-
git add MCP
77+
git add "$MCP_DIR"
7178
git commit -m "feat: codeglide Auto-generated MCP server code
7279
7380
Triggered by: @${{ github.actor }}"
@@ -114,4 +121,3 @@ runs:
114121
name: generated-mcp
115122
path: generated-mcp/
116123

117-

0 commit comments

Comments
 (0)