Skip to content

Commit 958372c

Browse files
committed
chore: update paths in version synchronization workflow for MCP and CLI repositories
Modify the GitHub Actions workflow to clone the MCP and CLI repositories into temporary directories instead of the current directory. This change improves the organization of the workflow and ensures that the latest OpenAPI specification is correctly referenced during the synchronization process.
1 parent e7c5814 commit 958372c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/sync-version.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
2323
- name: Sync version to MCP repository
2424
run: |
25-
git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/mcp.git mcp-repo
26-
cd mcp-repo
25+
git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/mcp.git /tmp/mcp-repo
26+
cd /tmp/mcp-repo
2727
2828
# Regenerate tools from latest OpenAPI spec
2929
npm install -g pnpm
@@ -49,12 +49,12 @@ jobs:
4949
5050
- name: Sync version to CLI repository
5151
run: |
52-
git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/cli.git cli-repo
52+
git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/cli.git /tmp/cli-repo
5353
54-
cd cli-repo
54+
cd /tmp/cli-repo
5555
5656
# Copy latest openapi spec and regenerate commands
57-
cp ../openapi.json ./openapi.json
57+
cp ${{ github.workspace }}/openapi.json ./openapi.json
5858
npm install -g pnpm
5959
pnpm install
6060
pnpm run generate

0 commit comments

Comments
 (0)