Skip to content

Dependabot auto-merge #1

Dependabot auto-merge

Dependabot auto-merge #1

name: Dependabot auto-merge
on:
workflow_dispatch:
pull_request:
branches: ["*"]
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
permissions:
pull-requests: write
contents: write
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@06ea45a2e4582d87b11f03c7ce596ae3261f39f6
- name: Enable auto-merge for Dependabot PRs
if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}