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