mcp-freescout/.github/workflows/dependabot-auto-merge.yml
Jack Arturo 7e931cadfc
Some checks failed
CI / test (push) Failing after 0s
Security / CodeQL Analysis (push) Failing after 1s
Release Please / release-please (push) Failing after 2s
Release Please / npm-publish (push) Has been skipped
Release Please / mcp-registry-publish (push) Has been skipped
Release Please / announce (push) Has been skipped
Security / Dependency Audit (push) Successful in 7m8s
fix(ci): make dependabot auto-approve non-fatal (#42)
2026-04-23 00:02:12 +00:00

35 lines
940 B
YAML

name: Dependabot auto-merge
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
if: github.event.pull_request.user.login == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Fetch Dependabot metadata
id: meta
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve and enable auto-merge
if: |
steps.meta.outputs.update-type != 'version-update:semver-major' ||
steps.meta.outputs.package-ecosystem == 'github_actions'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
gh pr review --approve "$PR_URL" 2>/dev/null || true
gh pr merge --auto --squash "$PR_URL"