Use special secret for pr approval.

This commit is contained in:
Alejandro Pauly
2020-09-18 11:13:36 -04:00
committed by GitHub
parent bee0124648
commit 4f51cd9d28

View File

@@ -26,7 +26,7 @@ jobs:
- name: Approve pull request by GitHub-Actions bot
uses: actions/github-script@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
github-token: ${{secrets.PRAPPROVAL_SECRET}}
script: |
github.pulls.createReview({
owner: context.repo.owner,
@@ -56,4 +56,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
ref: "heads/${{ github.event.client_payload.ReleaseBranchName }}-docs"
})
})