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.
This commit is contained in:
Mauricio Siu
2025-11-30 01:05:54 -06:00
parent 0f632e3f55
commit 817825e8bd

View File

@@ -1,15 +1,15 @@
name: Generate and Sync OpenAPI name: Generate and Sync OpenAPI
on: on:
# Se ejecuta cuando hay cambios en los routers de la API
push: push:
branches: branches:
- feat/sync-open-api-website-docs - canary
# paths: - main
# - 'apps/dokploy/server/api/routers/**' paths:
# - 'packages/server/src/services/**' - 'apps/dokploy/server/api/routers/**'
# - 'packages/server/src/db/schema/**' - 'packages/server/src/services/**'
# Permite ejecución manual - 'packages/server/src/db/schema/**'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -67,15 +67,4 @@ jobs:
git push git push
echo "✅ OpenAPI synced to website successfully" 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