Skip to content

chore: bump the gradle-updates group with 2 updates #1

chore: bump the gradle-updates group with 2 updates

chore: bump the gradle-updates group with 2 updates #1

name: Dependabot auto-approve
on: pull_request
permissions:
pull-requests: write
contents: write
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
# https://github.com/dependabot/fetch-metadata
- name: Dependabot metadata
id: dependabot-metadata
uses: "dependabot/fetch-metadata@5e5f99653a5b510e8555840e80cbf1514ad4af38" # v2.1.0
- name: Automatically approve & merge Dependabot patch PRs
if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
run: |
gh pr review --approve "$PR_URL"
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ github.token }}