Skip to content

NoTicket: Use self-hosted runners instead of GitHub-hosted runners #26

NoTicket: Use self-hosted runners instead of GitHub-hosted runners

NoTicket: Use self-hosted runners instead of GitHub-hosted runners #26

name: auto-approve
on: pull_request
permissions:
pull-requests: write
contents: write
jobs:
auto-approve:
runs-on: [self-hosted, small]
if: ${{ github.actor == 'renovate[bot]' || github.actor == 'dependabot[bot]' }}
steps:
- name: Approve Renovate PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GYGROBOT_TOKEN }}
- name: auto-merge Dependabot PRs
if: ${{ github.actor == 'dependabot[bot]' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ github.token }}