From 91141bfba5dff60204009e045f1e513d8e35b694 Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Wed, 1 Apr 2026 22:23:12 +0800 Subject: [PATCH] ci(sync-auto): update sync workflow to checkout default branch - add explicit ref parameter to checkout action for clarity and reliability - ensure workflow always checks out the repository's default branch --- .github/workflows/sync-auto.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sync-auto.yml b/.github/workflows/sync-auto.yml index 4fb4ae737..b6e9d5729 100644 --- a/.github/workflows/sync-auto.yml +++ b/.github/workflows/sync-auto.yml @@ -45,6 +45,7 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 + ref: ${{ github.event.repository.default_branch }} - name: 检测默认分支 run: | @@ -114,6 +115,7 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 + ref: ${{ github.event.repository.default_branch }} - name: 检测默认分支 run: |