Use GitHub Action for Dependabot (#314)

This commit is contained in:
Yota Toyama
2023-12-07 19:04:29 +08:00
committed by GitHub
parent 7661ff89e8
commit 23fa9a3722
2 changed files with 13 additions and 11 deletions

11
.github/mergify.yml vendored
View File

@@ -1,11 +0,0 @@
pull_request_rules:
- name: dependabot
conditions:
- author=dependabot[bot]
actions:
queue:
name: default
method: squash
queue_rules:
- name: default
conditions: []

13
.github/workflows/dependabot.yaml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: dependabot
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}