1
0
Fork 0

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
This commit is contained in:
pooneyy 2026-04-01 22:23:12 +08:00
parent 59f4eb3dc0
commit 91141bfba5
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

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