Skip to content

ci(dependabot): Checkout repo before using any git/gh commands. #45

ci(dependabot): Checkout repo before using any git/gh commands.

ci(dependabot): Checkout repo before using any git/gh commands. #45

Workflow file for this run

name: Auto-approve and enable auto-merge on dependabot PRs
on: pull_request_target
jobs:
auto-approve-and-automerge:
# sources:
# https://github.com/hmarr/auto-approve-action
# https://github.com/marketplace/actions/enable-pull-request-automerge#dependabot-example
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v2
- name: Auto-approve PR
uses: hmarr/auto-approve-action@v3
- name: Enable auto-merge
run: gh pr merge --merge --auto ${{ github.event.pull_request.number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}