From 817825e8bdf68bf82c54d19a5cbb68a43235f508 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sun, 30 Nov 2025 01:05:54 -0600 Subject: [PATCH] chore: update OpenAPI sync workflow triggers and paths - Modified the workflow to trigger on pushes to the 'canary' and 'main' branches. - Re-enabled path filters for specific directories related to the OpenAPI documentation. - Removed commented-out sections for clarity and improved workflow readability. --- .github/workflows/sync-openapi-docs.yml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/sync-openapi-docs.yml b/.github/workflows/sync-openapi-docs.yml index d9c719278..d9784128c 100644 --- a/.github/workflows/sync-openapi-docs.yml +++ b/.github/workflows/sync-openapi-docs.yml @@ -1,15 +1,15 @@ name: Generate and Sync OpenAPI on: - # Se ejecuta cuando hay cambios en los routers de la API push: branches: - - feat/sync-open-api-website-docs - # paths: - # - 'apps/dokploy/server/api/routers/**' - # - 'packages/server/src/services/**' - # - 'packages/server/src/db/schema/**' - # Permite ejecución manual + - canary + - main + paths: + - 'apps/dokploy/server/api/routers/**' + - 'packages/server/src/services/**' + - 'packages/server/src/db/schema/**' + workflow_dispatch: jobs: @@ -67,15 +67,4 @@ jobs: git push echo "✅ OpenAPI synced to website successfully" - continue-on-error: true - - - name: Create summary - run: | - echo "## 📊 OpenAPI Sync Summary" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo "- **Repository:** \`${{ github.repository }}\`" >> $GITHUB_STEP_SUMMARY - echo "- **Commit:** \`${{ github.sha }}\`" >> $GITHUB_STEP_SUMMARY - echo "- **Trigger:** \`${{ github.event_name }}\`" >> $GITHUB_STEP_SUMMARY - echo "- **Target:** \`dokploy/website\`" >> $GITHUB_STEP_SUMMARY - echo "- **Status:** ✅ Success" >> $GITHUB_STEP_SUMMARY