Use @octomerger for approving and merging translation batches (#23546)
* Use @octomerger for approving and merging translation batches Here is a [list of bots](https://github.com/github/docs-engineering#bot-accounts) * Set @octomerger as a code owner of /translations
This commit is contained in:
@@ -175,13 +175,13 @@ jobs:
|
||||
- name: Approve PR
|
||||
if: github.ref_name == 'main'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
|
||||
run: gh pr review --approve || echo "Nothing to approve"
|
||||
|
||||
- name: Set auto-merge
|
||||
if: github.ref_name == 'main'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.DOCUBOT_REPO_PAT }}
|
||||
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
|
||||
run: gh pr merge ${{ steps.set-branch.outputs.BRANCH_NAME }} --auto --squash || echo "Nothing to merge"
|
||||
|
||||
# When the maximum execution time is reached for this job, Actions cancels the workflow run.
|
||||
|
||||
Reference in New Issue
Block a user