This commit is contained in:
Colbster937
2026-01-29 17:03:00 -06:00
parent e315eeab24
commit f1fe503357
2 changed files with 11 additions and 10 deletions

View File

@@ -1,7 +1,5 @@
name: Dependabot Auto Merge
on:
pull_request_target:
pull_request:
permissions:
contents: write
@@ -9,11 +7,16 @@ permissions:
jobs:
dependabot:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- uses: fastify/github-action-merge-dependabot@v3
- id: metadata
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
merge-method: squash
target: minor
github-token: "${{ secrets.GITHUB_TOKEN }}"
- if: steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}