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 }}