From 2f08b33931e37677a36633f6e7772501f44cabd4 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 11 May 2026 13:12:08 -0600 Subject: [PATCH] feat(sync): add job to sync OpenAPI specification to SDK repository - Implemented a new workflow step to clone the SDK repository and update the OpenAPI specification. - Configured Git user details for the sync operation and added a commit message format that includes source and update timestamp. - Ensured successful synchronization of OpenAPI documentation to the SDK repository. --- .github/workflows/sync-openapi-docs.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/sync-openapi-docs.yml b/.github/workflows/sync-openapi-docs.yml index 1a6b1e87b..147d8d97e 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" +