fix: secrets

This commit is contained in:
sagitchu 2025-03-18 16:49:34 +08:00
parent 647b3024a2
commit 36f6ff2eb8
2 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ jobs:
- name: Sync upstream pull requests
uses: actions/github-script@v6
with:
github-token: ${{ secrets.sync.TOKEN }}
github-token: ${{ secrets.TOKEN }}
script: |
const upstream = 'songquanpeng/one-api'; // 替换为实际的上游仓库
const [owner, repo] = upstream.split('/');

View File

@ -23,11 +23,11 @@ jobs:
- name: Sync Upstream PRs
env:
GITHUB_TOKEN: ${{ secrets.sync.TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GH_TOKEN: ${{ github.token }}
UPSTREAM_REPO: ${{ secrets.sync.UPSTREAM_REPO }} # 例如 'original-owner/original-repo'
UPSTREAM_OWNER: ${{ secrets.sync.UPSTREAM_OWNER }} # 例如 'original-owner'
UPSTREAM_REPO_NAME: ${{ secrets.sync.UPSTREAM_REPO_NAME }} # 例如 'original-repo'
UPSTREAM_REPO: ${{ secrets.UPSTREAM_REPO }} # 例如 'original-owner/original-repo'
UPSTREAM_OWNER: ${{ secrets.UPSTREAM_OWNER }} # 例如 'original-owner'
UPSTREAM_REPO_NAME: ${{ secrets.UPSTREAM_REPO_NAME }} # 例如 'original-repo'
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
run: |