Skip to content

chore(deps): bump the github-actions group across 1 directory with 7 updates #47

chore(deps): bump the github-actions group across 1 directory with 7 updates

chore(deps): bump the github-actions group across 1 directory with 7 updates #47

name: Dependabot Auto-Merge
on: pull_request
permissions:
contents: read
jobs:
auto-merge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-merge patch and minor updates
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}