Skip to content

Commit 6cb0ab3

Browse files
ci: rebase before push in screenshots workflow
Add git pull --rebase before pushing updated CLI screenshots to avoid push rejections when master receives commits during the workflow run. Co-authored-by: Copilot <[email protected]>
1 parent bdcf27b commit 6cb0ab3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/docspublish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
4242
if [[ -n "$(git status --porcelain)" ]]; then
4343
git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]"
44+
git pull --rebase origin master
4445
git push
4546
else
4647
echo "No changes to commit. Skipping."

0 commit comments

Comments
 (0)