diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000000..f772d5d14a --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,20 @@ +name: build + +on: + pull_request: + +permissions: read-all + +jobs: + dependabot-auto-merge: + name: 'Dependabot auto-merge' + permissions: + pull-requests: write + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --rebase "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}