diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index b220f3557e..891923b516 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -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 }}