Skip to content

Commit bc1d32a

Browse files
lennessyyclaude
andauthored
fix: use --force for snipsync bot branch push (#4422)
The --force-with-lease check fails because the workflow only checks out main and never fetches the existing snipsync/daily-update remote ref, causing a "stale info" rejection. Since this is a bot-managed branch recreated from main each run, --force is safe and appropriate. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2dc8d2e commit bc1d32a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/snipsync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
git checkout -B "$branch_name"
5858
git add docs/
5959
git commit -m "chore: sync code snippets via snipsync"
60-
git push --force-with-lease origin "$branch_name"
60+
git push --force origin "$branch_name"
6161
6262
- name: Create or update PR
6363
if: steps.changes.outputs.has_changes == 'true'

0 commit comments

Comments
 (0)