Skip to content

Commit 9e40fb5

Browse files
authored
Update sync-content-to-next.yml
1 parent 53ccb6b commit 9e40fb5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/sync-content-to-next.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v3
2222
with:
2323
fetch-depth: 0
24-
token: ${{ secrets.CONTENT_SYNC_TOKEN }}
24+
token: ${{ secrets.SYNC_MAIN_TO_NEXT }}
2525

2626
- name: Set up Git
2727
run: |
@@ -76,7 +76,7 @@ jobs:
7676
--title "[Auto-sync] ${{ steps.get-commit.outputs.commit_msg }}" \
7777
--body "Automatic synchronization of commit from main: ${{ steps.get-commit.outputs.commit_hash }}\n\nChanges applied automatically by GitHub Actions."
7878
env:
79-
GITHUB_TOKEN: ${{ secrets.CONTENT_SYNC_TOKEN }}
79+
GITHUB_TOKEN: ${{ secrets.SYNC_MAIN_TO_NEXT }}
8080

8181
# Job 2: Create PR to next when a PR is labeled
8282
create-pr-for-labeled:
@@ -87,7 +87,7 @@ jobs:
8787
uses: actions/checkout@v3
8888
with:
8989
fetch-depth: 0
90-
token: ${{ secrets.CONTENT_SYNC_TOKEN }}
90+
token: ${{ secrets.SYNC_MAIN_TO_NEXT }}
9191

9292
- name: Set up Git
9393
run: |
@@ -110,7 +110,7 @@ jobs:
110110
echo "Non-content files found: $INVALID_FILES"
111111
fi
112112
env:
113-
GITHUB_TOKEN: ${{ secrets.CONTENT_SYNC_TOKEN }}
113+
GITHUB_TOKEN: ${{ secrets.SYNC_MAIN_TO_NEXT }}
114114

115115
- name: Create PR to next branch
116116
if: steps.check-pr-files.outputs.content_only == 'true'
@@ -146,7 +146,7 @@ jobs:
146146
--title "[Port to next] $PR_TITLE" \
147147
--body "Automatic port of PR #${{ github.event.pull_request.number }} to next branch.\n\nOriginal PR: #${{ github.event.pull_request.number }}\nCreated automatically after adding the 'temp: port to docs-next' label."
148148
env:
149-
GITHUB_TOKEN: ${{ secrets.CONTENT_SYNC_TOKEN }}
149+
GITHUB_TOKEN: ${{ secrets.SYNC_MAIN_TO_NEXT }}
150150

151151
# Job 3: Sync changes when a labeled PR is merged to main
152152
sync-merged-pr:
@@ -157,7 +157,7 @@ jobs:
157157
uses: actions/checkout@v3
158158
with:
159159
fetch-depth: 0
160-
token: ${{ secrets.CONTENT_SYNC_TOKEN }}
160+
token: ${{ secrets.SYNC_MAIN_TO_NEXT }}
161161

162162
- name: Set up Git
163163
run: |
@@ -205,4 +205,4 @@ jobs:
205205
--title "[Merged-sync] ${{ github.event.pull_request.title }}" \
206206
--body "Synchronization of the merge commit from PR #${{ github.event.pull_request.number }} to next.\n\nThis PR replaces any previous port PR created for #${{ github.event.pull_request.number }}."
207207
env:
208-
GITHUB_TOKEN: ${{ secrets.CONTENT_SYNC_TOKEN }}
208+
GITHUB_TOKEN: ${{ secrets.SYNC_MAIN_TO_NEXT }}

0 commit comments

Comments
 (0)