Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 24, 2025

Problem

The current sync workflow triggers on pushes to both v12.0 and v13.0 branches but always merges v12.0v13.0 regardless of which branch triggered it. This causes:

  • Redundant runs when pushing to v13.0 (since it doesn't need to sync anywhere)
  • Noisy executions that provide no value
  • Potential race conditions from concurrent sync operations

The goal is one-way forward sync only: changes to v12.0 should merge into v13.0, but changes to v13.0 should not trigger the workflow.

Solution

Updated .github/workflows/sync-version-branches.yml to implement proper one-way sync:

Key Changes

  1. Refined triggers: Now only triggers on pushes to v12.0 branch (removed v13.0)
  2. Manual dispatch: Added workflow_dispatch for manual runs when needed
  3. Concurrency control: Added concurrency group sync-v12-to-v13 with cancel-in-progress: true to prevent overlapping operations
  4. Improved clarity: Updated names to clearly indicate the sync direction
    • Workflow: "Sync v12.0 -> v13.0"
    • Step: "Keep v13.0 in sync with v12.0"

Preserved Settings

  • ✅ Same action version (jojomatik/sync-branch@v2.0.2)
  • ✅ Same merge strategy and conflict resolution settings
  • ✅ Same bot credentials and GitHub token usage

Benefits

  • Eliminates noise: No more unnecessary runs on v13.0 pushes
  • Prevents conflicts: Concurrency control ensures operations don't interfere
  • Maintains pattern: Clean one-way forward sync from older to newer versions
  • Manual control: Allows manual triggering when needed

Testing

  • Validated YAML syntax and structure
  • Confirmed compatibility with GitHub Actions workflow schema
  • Verified all required fields and job configurations are present
  • Follows existing repository YAML formatting standards

After merging, pushes to v12.0 will trigger the sync to v13.0, while pushes to v13.0 will not trigger any sync operations.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits August 24, 2025 23:22
… control

Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Copilot AI changed the title [WIP] Limit sync workflow to v12.0 pushes and add concurrency for v12.0 → v13.0 Fix sync workflow to only trigger on v12.0 pushes and add concurrency control Aug 24, 2025
@BenjaminMichaelis BenjaminMichaelis marked this pull request as ready for review August 25, 2025 14:48
@BenjaminMichaelis BenjaminMichaelis merged commit 3fc1009 into v12.0 Sep 10, 2025
6 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the copilot/fix-76c1b92f-28db-4725-babd-3644dc03b635 branch September 10, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants