From 23fa9a3722d130d752082bef239bf181af93c18a Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Thu, 7 Dec 2023 19:04:29 +0800 Subject: [PATCH] Use GitHub Action for Dependabot (#314) --- .github/mergify.yml | 11 ----------- .github/workflows/dependabot.yaml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 11 deletions(-) delete mode 100644 .github/mergify.yml create mode 100644 .github/workflows/dependabot.yaml diff --git a/.github/mergify.yml b/.github/mergify.yml deleted file mode 100644 index 3063031..0000000 --- a/.github/mergify.yml +++ /dev/null @@ -1,11 +0,0 @@ -pull_request_rules: - - name: dependabot - conditions: - - author=dependabot[bot] - actions: - queue: - name: default - method: squash -queue_rules: - - name: default - conditions: [] diff --git a/.github/workflows/dependabot.yaml b/.github/workflows/dependabot.yaml new file mode 100644 index 0000000..b4e087b --- /dev/null +++ b/.github/workflows/dependabot.yaml @@ -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 }}