From 6cb0ab346dd80814ec83ea7fcc9f8d9548381598 Mon Sep 17 00:00:00 2001 From: Tim Hsiung Date: Sun, 3 May 2026 15:11:20 +0800 Subject: [PATCH] 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 <223556219+Copilot@users.noreply.github.com> --- .github/workflows/docspublish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docspublish.yml b/.github/workflows/docspublish.yml index a84079fd6..c572d2d3f 100644 --- a/.github/workflows/docspublish.yml +++ b/.github/workflows/docspublish.yml @@ -41,6 +41,7 @@ jobs: if [[ -n "$(git status --porcelain)" ]]; then git commit -m "docs(cli/screenshots): update CLI screenshots" -m "[skip ci]" + git pull --rebase origin master git push else echo "No changes to commit. Skipping."