Skip to content

Autoupdate coredns can automerge its own PRs #2

Autoupdate coredns can automerge its own PRs

Autoupdate coredns can automerge its own PRs #2

name: Auto-merge cdkbot PRs
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
cdkbot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'cdkbot' }}
steps:
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for bot PRs
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}