mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
Use special secret for pr approval.
This commit is contained in:
4
.github/workflows/merge_pull_request.yml
vendored
4
.github/workflows/merge_pull_request.yml
vendored
@@ -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"
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user