You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. **Sync with upstream** - Pulls latest changes using rebase to maintain linear history
114
114
4. **Restore changes** - Pops the stash to restore your changes
115
+
- **Automatic conflict resolution**: If conflicts occur between stashed changes and pulled changes, the action automatically resolves them by accepting your stashed changes (the newer modifications from this workflow)
116
+
- This ensures concurrent workflow changes are properly merged without leaving conflict markers
115
117
5. **Stage files** - Adds files matching the specified pattern
116
-
6. **Commit** - Creates a commit if there are staged changes
117
-
7. **Push with retry** - Attempts to push with automatic retry on failure:
118
+
6. **Safety check** - Verifies no conflict markers are present in staged files (additional safeguard)
119
+
7. **Commit** - Creates a commit if there are staged changes
120
+
8. **Push with retry** - Attempts to push with automatic retry on failure:
118
121
- On push failure, rebases again and retries
119
122
- Continues up to `max_retries` attempts
120
123
- Handles race conditions from concurrent workflows
@@ -297,6 +300,14 @@ This usually means concurrent changes occurred. The action automatically handles
297
300
max_retries: 10 # Increase for high-concurrency scenarios
298
301
```
299
302
303
+
### Conflict markers in committed files
304
+
305
+
The action now includes automatic conflict resolution and a safety check to prevent committing conflict markers (`<<<<<<<`, `=======`, `>>>>>>>`). If you see the error "Conflict markers detected in staged files!", this means:
306
+
1. A merge conflict occurred that couldn't be auto-resolved
307
+
2. The action prevented committing corrupted files
308
+
3. Review the workflow logs to understand the conflict
309
+
4. This is a safety feature to protect your repository from corrupted files
0 commit comments