Skip to content

chore(deps): bump github/codeql-action from 2 to 4 #27

chore(deps): bump github/codeql-action from 2 to 4

chore(deps): bump github/codeql-action from 2 to 4 #27

name: Auto-merge Dependabot PRs
on:
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review, labeled]
jobs:
automerge:
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: read
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve PR
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr review --approve "$PR_URL"
- name: Enable auto-merge
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --auto --squash "$PR_URL"