Skip to content

build(deps): bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 #147

build(deps): bump dependabot/fetch-metadata from 2.2.0 to 2.3.0

build(deps): bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 #147

name: Auto-merge Dependabot PRs
on: pull_request_target
permissions:
pull-requests: write
contents: write
jobs:
merge-dependabot-pr:
runs-on: ubuntu-22.04
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
- name: Enable auto-merge for minor updates
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr review --approve ${{ github.event.pull_request.html_url }}
gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}