Skip to content

Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 #130

Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0

Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 #130

Workflow file for this run

name: Auto-merge
on:
pull_request_target:
branches:
- master
permissions: read-all
jobs:
auto-merge:
name: Check and enable auto-merge
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Get Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0
- name: Enable auto-merge for minor and patch version updates
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.REQUIRED_COM_REPO_ACCESS_PAT }}