mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 09:16:36 +08:00
fix: workflows permission
This commit is contained in:
parent
d05d52913b
commit
5a0a075d0c
3
.github/workflows/sync-upstream.yml
vendored
3
.github/workflows/sync-upstream.yml
vendored
@ -11,6 +11,7 @@ jobs:
|
||||
permissions: # 添加必要的权限
|
||||
pull-requests: write
|
||||
contents: write
|
||||
workflows: write # 添加 workflows 权限
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@ -44,7 +45,7 @@ jobs:
|
||||
page++;
|
||||
}
|
||||
return allPulls;
|
||||
}
|
||||
}
|
||||
|
||||
// 获取所有PR
|
||||
const pulls = await getAllPRs();
|
||||
|
Loading…
Reference in New Issue
Block a user