Skip to content

Commit 8187dbc

Browse files
author
markzegarelli
authored
Update repo-sync.yml
1 parent a6392e8 commit 8187dbc

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/repo-sync.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,25 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13+
1314
- uses: repo-sync/github-sync@v2
1415
name: Sync repo to branch
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
1518
with:
1619
source_repo: ${{ secrets.SOURCE_REPO }}
1720
source_branch: master
1821
destination_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
19-
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
github_token: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
23+
2024
- uses: repo-sync/pull-request@v2
2125
name: Create pull request
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}
2228
with:
2329
source_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
24-
destination_branch: main
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
destination_branch: master
31+
pr_title: 'repo sync'
32+
pr_body: "This is an automated pull request to sync changes between the public and private repos.\n\n:robot: This pull request should be merged (not squashed) to preserve continuity across repos, so please let a bot do the merging!"
33+
pr_label: autoupdate,automated-reposync-pr
34+
github_token: ${{ secrets.DOCS_BOT_PAT_REPO_SCOPE }}

0 commit comments

Comments
 (0)