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
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user