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: |