Skip to content

Update dependabot.yml #9

Update dependabot.yml

Update dependabot.yml #9

Workflow file for this run

name: dependabot
on:
push:
jobs:
validate:
uses: ./.github/workflows/test.yml
dependabot:
name: Dependabot Auto-merge
runs-on: ubuntu-latest
needs: [validate]
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
steps:
- name: 💿 Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: ↔️ Enable Auto-merge for minor and patch Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}