diff --git a/.github/workflows/sync-openapi-docs.yml b/.github/workflows/sync-openapi-docs.yml index 1a6b1e87b2..147d8d97e9 100644 --- a/.github/workflows/sync-openapi-docs.yml +++ b/.github/workflows/sync-openapi-docs.yml @@ -110,3 +110,24 @@ jobs: echo "✅ OpenAPI synced to CLI repository successfully" + - name: Sync to SDK repository + run: | + git clone https://x-access-token:${{ secrets.DOCS_SYNC_TOKEN }}@github.com/dokploy/sdk.git sdk-repo + + cd sdk-repo + + cp -f ../openapi.json openapi.json + + git config user.name "Dokploy Bot" + git config user.email "bot@dokploy.com" + + git add openapi.json + git commit -m "chore: sync OpenAPI specification [skip ci]" \ + -m "Source: ${{ github.repository }}@${{ github.sha }}" \ + -m "Updated: $(date -u +'%Y-%m-%d %H:%M:%S UTC')" \ + --allow-empty + + git push + + echo "✅ OpenAPI synced to SDK repository successfully" + diff --git a/apps/dokploy/package.json b/apps/dokploy/package.json index 69975cbc60..cc9f79f9e8 100644 --- a/apps/dokploy/package.json +++ b/apps/dokploy/package.json @@ -1,6 +1,6 @@ { "name": "dokploy", - "version": "v0.29.3", + "version": "v0.29.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/server/src/wss/utils.ts b/packages/server/src/wss/utils.ts index 0ea7485f9a..bce5aa245a 100644 --- a/packages/server/src/wss/utils.ts +++ b/packages/server/src/wss/utils.ts @@ -40,7 +40,7 @@ export const readValidDirectory = ( directory: string, serverId?: string | null, ) => { - if (!/^[\w/. -]{1,500}$/.test(directory)) { + if (!/^[\w/. :-]{1,500}$/.test(directory)) { return false; }