From 88033480b4faa51ea893c99c145ceff48c4edcca Mon Sep 17 00:00:00 2001 From: Kevin Heis Date: Tue, 20 Jun 2023 07:10:03 -0700 Subject: [PATCH] Repo sync, Generate source repo from string instead of separate secret (#38162) --- .github/workflows/repo-sync.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }}