Skip to content

▶️ Set up CI pipeline #1

▶️ Set up CI pipeline

▶️ Set up CI pipeline #1

name: "Dependabot auto-approve/-merge"
on: pull_request
jobs:
dependabot:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Approve pull request
run: gh pr review --approve "$PR_URL"
- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"