From ae37aa49e160b7fdf4946d34e8e0060bbb2f7c42 Mon Sep 17 00:00:00 2001 From: wangzhuc Date: Thu, 2 Apr 2026 00:00:40 +0800 Subject: [PATCH] fix(ci): use full clone to prevent history loss on amend + force push MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions/checkout@v4 defaults to depth=1. When the CI amends the triggering commit and force-pushes, the shallow history replaces the full history on the remote — wiping all prior commits. Fix: set fetch-depth: 0 for full clone. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/build-openclaw.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-openclaw.yml b/.github/workflows/build-openclaw.yml index b715bd6..fbff8e8 100644 --- a/.github/workflows/build-openclaw.yml +++ b/.github/workflows/build-openclaw.yml @@ -21,6 +21,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-python@v5 with: