Commit 3fc1009
Fix sync workflow to only trigger on v12.0 pushes and add concurrency control (#827)
## Problem
The current sync workflow triggers on pushes to both `v12.0` and `v13.0`
branches but always merges `v12.0` → `v13.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/[email protected]`)
- ✅ 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.
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/IntelliTect/EssentialCSharp/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: BenjaminMichaelis <[email protected]>1 parent c5c6a17 commit 3fc1009
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | | - | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
| |||
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 26 | + | |
0 commit comments