Skip to content

chore(deps): bump actions/setup-node from 4.0.4 to 4.1.0 #40

chore(deps): bump actions/setup-node from 4.0.4 to 4.1.0

chore(deps): bump actions/setup-node from 4.0.4 to 4.1.0 #40

name: Auto-merge Dependabot PRs
on:
pull_request_target:
types: [ review_requested ]
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@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
- name: Enable auto-merge for minor versions
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 }}