Skip to content

build(deps): bump contourpy from 1.3.0 to 1.3.1 #128

build(deps): bump contourpy from 1.3.0 to 1.3.1

build(deps): bump contourpy from 1.3.0 to 1.3.1 #128

name: Dependabot auto-merge
on:
pull_request:
permissions:
contents: write
pull-requests: write
issues: write
repository-projects: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
alert-lookup: true
compat-lookup: true
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs Indirect Dependency Version Update SemVer Minor
if: ${{ steps.metadata.outputs.dependency-type == 'indirect' && steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
run: gh pr merge --auto --merge "$PR_URL" --delete-branch
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependabot PRs Indirect Dependency Version Update SemVer Patch
if: ${{ steps.metadata.outputs.dependency-type == 'indirect' && steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr merge --auto --merge "$PR_URL" --delete-branch
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}