mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 00:53:19 +08:00
ci(workflow): 更新PR工作流以支持fork仓库
添加repository和token参数以支持从fork仓库拉取代码
This commit is contained in:
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user