mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 17:16:38 +08:00
fix: secrets
This commit is contained in:
parent
647b3024a2
commit
36f6ff2eb8
2
.github/workflows/sync-upstream.yml
vendored
2
.github/workflows/sync-upstream.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Sync upstream pull requests
|
- name: Sync upstream pull requests
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.sync.TOKEN }}
|
github-token: ${{ secrets.TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const upstream = 'songquanpeng/one-api'; // 替换为实际的上游仓库
|
const upstream = 'songquanpeng/one-api'; // 替换为实际的上游仓库
|
||||||
const [owner, repo] = upstream.split('/');
|
const [owner, repo] = upstream.split('/');
|
||||||
|
8
.github/workflows/sync-upstreem-pr.yml
vendored
8
.github/workflows/sync-upstreem-pr.yml
vendored
@ -23,11 +23,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Sync Upstream PRs
|
- name: Sync Upstream PRs
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.sync.TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
UPSTREAM_REPO: ${{ secrets.sync.UPSTREAM_REPO }} # 例如 'original-owner/original-repo'
|
UPSTREAM_REPO: ${{ secrets.UPSTREAM_REPO }} # 例如 'original-owner/original-repo'
|
||||||
UPSTREAM_OWNER: ${{ secrets.sync.UPSTREAM_OWNER }} # 例如 'original-owner'
|
UPSTREAM_OWNER: ${{ secrets.UPSTREAM_OWNER }} # 例如 'original-owner'
|
||||||
UPSTREAM_REPO_NAME: ${{ secrets.sync.UPSTREAM_REPO_NAME }} # 例如 'original-repo'
|
UPSTREAM_REPO_NAME: ${{ secrets.UPSTREAM_REPO_NAME }} # 例如 'original-repo'
|
||||||
REPO_OWNER: ${{ github.repository_owner }}
|
REPO_OWNER: ${{ github.repository_owner }}
|
||||||
REPO_NAME: ${{ github.event.repository.name }}
|
REPO_NAME: ${{ github.event.repository.name }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user