Skip to content

ci: fix push failures on pipeline rerun - #47

Merged
arran4 merged 1 commit into
mainfrom
ci/fix-rerun-push-17484252166140911272
Aug 13, 2026
Merged

ci: fix push failures on pipeline rerun#47
arran4 merged 1 commit into
mainfrom
ci/fix-rerun-push-17484252166140911272

Conversation

@arran4

@arran4 arran4 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Updates .github/workflows/ci.yml to properly handle failures when pushing to the remote branch during workflow reruns. Specifically, it implements pull-rebase behavior for the main branch version bump to resolve non-fast-forward errors and force-pushing for the auto-fix branch.


PR created automatically by Jules for task 17484252166140911272 started by @arran4

When the CI pipeline is re-run, duplicate commit creation and push failures can occur because the commits from the previous run may already exist on the remote branch.

This handles two cases in `.github/workflows/ci.yml`:
1. For manual version bumps to the main branch, if a push is rejected (e.g. non-fast-forward), it performs a `git pull --rebase` to reconcile the local tree before retrying the push. Git rebase will gracefully drop the redundant local commit.
2. For the `ci-autofix` branch creation, it performs a force push (`git push -f origin "$BRANCH"`) so that the automated PR branch is properly updated and replaced instead of failing.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@arran4
arran4 merged commit 29206b0 into main Aug 13, 2026
7 checks passed
@arran4
arran4 deleted the ci/fix-rerun-push-17484252166140911272 branch August 13, 2026 02:31
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.

1 participant