Skip to content

fix(deps): bump dependabot/fetch-metadata from 2.4.0 to 2.5.0 #35

fix(deps): bump dependabot/fetch-metadata from 2.4.0 to 2.5.0

fix(deps): bump dependabot/fetch-metadata from 2.4.0 to 2.5.0 #35

name: Dependabot automation
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@21025c705c08248db411dc16f3619e6b5f9ea21a # v2.5.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.STEP_GITHUB_ACTION_TOKEN }}
- name: Enable auto-merge for Dependabot PRs that doesn't include major version update
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 }}
GITHUB_TOKEN: ${{ secrets.STEP_GITHUB_ACTION_TOKEN }}