mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
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:
25
.github/workflows/sync-openapi-docs.yml
vendored
25
.github/workflows/sync-openapi-docs.yml
vendored
@@ -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
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user