Skip to content

Commit 94a62cb

Browse files
committed
fix(ci): force-push the pricing automation branches without a lease
The "Create pull request" steps pushed with --force-with-lease, but the job checks out main at fetch-depth 1 and never fetches the bot branch. Without a remote-tracking ref, git refuses the lease: ! [rejected] automation/litellm-pricing -> automation/litellm-pricing (stale info) error: failed to push some refs These branches are written only by this workflow, so a plain --force is safe and is the standard pattern for a bot-owned automation branch.
1 parent b7d0a45 commit 94a62cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/update-pricing.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
git checkout -B "$branch"
6363
git add flake.lock
6464
git commit -m "chore(pricing): update LiteLLM snapshot"
65-
git push --force-with-lease origin "$branch"
65+
git push --force origin "$branch"
6666
6767
body="$(printf '%s\n' \
6868
'Updates the locked LiteLLM pricing input used by Nix builds.' \
@@ -126,7 +126,7 @@ jobs:
126126
git checkout -B "$branch"
127127
git add flake.lock rust/crates/ccusage/src/models-dev-pricing.json
128128
git commit -m "chore(pricing): update models.dev snapshot"
129-
git push --force-with-lease origin "$branch"
129+
git push --force origin "$branch"
130130
131131
body="$(printf '%s\n' \
132132
'Updates the pinned models.dev input and its committed pricing snapshot.' \

0 commit comments

Comments
 (0)