mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 17:16:38 +08:00
fix: try to use default token
This commit is contained in:
parent
36f6ff2eb8
commit
179aa92c35
6
.github/workflows/sync-upstream.yml
vendored
6
.github/workflows/sync-upstream.yml
vendored
@ -8,6 +8,9 @@ on:
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
permissions: # 添加必要的权限
|
||||
pull-requests: write
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@ -15,7 +18,8 @@ jobs:
|
||||
- name: Sync upstream pull requests
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
github-token: ${{ secrets.TOKEN }}
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }} # 使用默认的 GITHUB_TOKEN
|
||||
# 或者使用您的自定义 token: ${{ secrets.YOUR_PAT }}
|
||||
script: |
|
||||
const upstream = 'songquanpeng/one-api'; // 替换为实际的上游仓库
|
||||
const [owner, repo] = upstream.split('/');
|
||||
|
Loading…
Reference in New Issue
Block a user