mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 09:03:18 +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
|
- name: Checkout PR branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# 2. 安装 Node.js
|
# 2. 安装 Node.js
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
|
|||||||
Reference in New Issue
Block a user