Repo sync, Generate source repo from string instead of separate secret (#38162)
This commit is contained in:
4
.github/workflows/repo-sync.yml
vendored
4
.github/workflows/repo-sync.yml
vendored
@@ -27,10 +27,8 @@ jobs:
|
||||
|
||||
- name: Sync repo to branch
|
||||
uses: repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}
|
||||
with:
|
||||
source_repo: ${{ secrets.SOURCE_REPO }} # https://${access_token}@github.com/github/the-other-repo.git
|
||||
source_repo: https://${{ secrets.DOCS_BOT_PAT_WORKFLOW }}@github.com/github/${{ github.repository == 'github/docs-internal' && 'docs' || 'docs-internal' }}.git
|
||||
source_branch: main
|
||||
destination_branch: repo-sync
|
||||
github_token: ${{ secrets.DOCS_BOT_PAT_WORKFLOW }}
|
||||
|
||||
Reference in New Issue
Block a user