mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-27 13:28:32 +07:00
d87ba0a4fc635b5165fb8ca39fd10029848b97cc
Problem: Both execute and update workflows were triggering for the same commit when a translation PR already existed, causing duplicate auto-sync commits (e.g., commit 2ddf04bc in PR #167 created two identical commits in PR #168). Root Cause: - Execute workflow (sync_docs_execute.yml) - handles initial PR creation - Update workflow (sync_docs_update.yml) - handles incremental updates - Both listen for "Analyze Documentation Changes" workflow completion - No coordination to prevent both from running when translation PR exists Solution: Execute workflow now skips all translation steps if translation branch already exists, letting the update workflow handle incremental changes. This ensures only one workflow processes each commit. Changes: - Added "Skip if translation PR already exists" step after branch check - Updated all subsequent steps to check branch_exists != 'true' - Steps affected: Python setup, dependencies, approval check, translation, and PR comments 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Description
Languages
MDX
90.5%
Python
9.3%
HTML
0.2%