Skip to content

Commit ade7272

Browse files
authored
Fix the GITHUB_TOKEN for the DIY docs label steps (#54808)
1 parent 17f8ec5 commit ade7272

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/first-responder-v2-prs-collect.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Check if PR is connected to DIY docs issue
7070
id: check-diy-docs
7171
env:
72-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
7373
run: |
7474
ISSUE_NUMS=$(echo "${{ github.event.pull_request.body }}" | grep -oE '(https://github.com/github/docs-content/issues/[0-9]+|#[0-9]+)' | grep -oE '[0-9]+')
7575
for ISSUE_NUM in $ISSUE_NUMS; do
@@ -83,7 +83,7 @@ jobs:
8383
- name: Add the DIY docs label if connected to a DIY docs issue
8484
if: ${{ env.DIY_DOCS_LABEL == 'true' }}
8585
env:
86-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
8787
PR_URL: ${{ github.event.pull_request.html_url }}
8888
run: |
8989
gh pr edit $PR_URL --add-label 'DIY docs'

0 commit comments

Comments
 (0)