Skip to content

Commit 97fd759

Browse files
B4nanclaude
andcommitted
ci: rebase before pushing versioned docs commit
Add `pull: '--rebase --autostash'` to the EndBug/add-and-commit step in the docs versioning workflow so the release push does not fail when the default branch has moved forward during the job. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ff6a296 commit 97fd759

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/manual_version_docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
add: website/versioned_docs website/versioned_sidebars website/versions.json
112112
message: "docs: Version docs for v${{ steps.snapshot.outputs.version }} [skip ci]"
113113
default_author: github_actions
114+
pull: '--rebase --autostash'
114115
# `actions/checkout` detaches HEAD on SHA refs; EndBug needs a branch to push.
115116
new_branch: ${{ github.event.repository.default_branch }}
116117

0 commit comments

Comments
 (0)