From 0ae848f6cf5aee1ddb0dfc7106bb2c9dd95a87e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=BA=E6=A2=B0=E5=B0=8F=E9=B8=BD?= <128568434+jixiexiaoge@users.noreply.github.com> Date: Sun, 22 Jun 2025 17:16:24 +0800 Subject: [PATCH] Update push2gitee.yml new --- .github/workflows/push2gitee.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push2gitee.yml b/.github/workflows/push2gitee.yml index 9973829..0f7afb4 100644 --- a/.github/workflows/push2gitee.yml +++ b/.github/workflows/push2gitee.yml @@ -2,7 +2,7 @@ name: Sync to Private Gitee on: schedule: - - cron: '0 1 * * *' # 每天凌晨 1 点 UTC(北京时间 9 点) + - cron: '0 1 * * *' # 每天 UTC 1 点(北京时间 9 点) workflow_dispatch: # 支持手动触发 jobs: @@ -10,8 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout GitHub repository + - name: Checkout GitHub repository (full history) uses: actions/checkout@v3 + with: + fetch-depth: 0 # ⬅️ 关键修改,避免 shallow clone 错误 - name: Set Git config run: |