Fix the GITHUB_TOKEN for the DIY docs label steps (#54808)
This commit is contained in:
@@ -69,7 +69,7 @@ jobs:
|
|||||||
- name: Check if PR is connected to DIY docs issue
|
- name: Check if PR is connected to DIY docs issue
|
||||||
id: check-diy-docs
|
id: check-diy-docs
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
|
||||||
run: |
|
run: |
|
||||||
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]+')
|
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]+')
|
||||||
for ISSUE_NUM in $ISSUE_NUMS; do
|
for ISSUE_NUM in $ISSUE_NUMS; do
|
||||||
@@ -83,7 +83,7 @@ jobs:
|
|||||||
- name: Add the DIY docs label if connected to a DIY docs issue
|
- name: Add the DIY docs label if connected to a DIY docs issue
|
||||||
if: ${{ env.DIY_DOCS_LABEL == 'true' }}
|
if: ${{ env.DIY_DOCS_LABEL == 'true' }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
|
||||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||||
run: |
|
run: |
|
||||||
gh pr edit $PR_URL --add-label 'DIY docs'
|
gh pr edit $PR_URL --add-label 'DIY docs'
|
||||||
|
|||||||
Reference in New Issue
Block a user