ci(workflow): 更新PR工作流以支持fork仓库

添加repository和token参数以支持从fork仓库拉取代码
This commit is contained in:
afoim
2025-08-13 13:59:45 +08:00
parent 7b7f4b970e
commit 1f3f6c2b40

View File

@@ -13,7 +13,9 @@ jobs:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
# 2. 安装 Node.js
- name: Setup Node.js