Skip to content

fix(deps): update go minor dependencies updates (auto-merge) #222

fix(deps): update go minor dependencies updates (auto-merge)

fix(deps): update go minor dependencies updates (auto-merge) #222

name: auto-approve
on: pull_request
permissions:
pull-requests: write
contents: write
jobs:
auto-approve:
runs-on: ubuntu-latest
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 }}