From 52ef17a883ee480973fe7f1bf5278fda62c4dbc7 Mon Sep 17 00:00:00 2001 From: Maxim Martynov Date: Mon, 26 Aug 2024 17:58:07 +0300 Subject: [PATCH] CI: automatically approve & merge Dependabot PRs (#1720) Co-authored-by: Davor Runje --- .github/workflows/dependabot_automerge.yaml | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/dependabot_automerge.yaml diff --git a/.github/workflows/dependabot_automerge.yaml b/.github/workflows/dependabot_automerge.yaml new file mode 100644 index 0000000000..fd9eaf6ce3 --- /dev/null +++ b/.github/workflows/dependabot_automerge.yaml @@ -0,0 +1,27 @@ +name: Dependabot automerge + +on: + pull_request_target: + +jobs: + automerge: + name: Enable pull request automerge + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'dependabot[bot]' + + steps: + - uses: alexwilson/enable-github-automerge-action@2.0.0 + with: + github-token: ${{ secrets.AUTOMERGE_TOKEN }} + merge-method: REBASE + + autoapprove: + name: Automatically approve pull request + needs: [automerge] + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'dependabot[bot]' + + steps: + - uses: hmarr/auto-approve-action@v4 + with: + github-token: ${{ secrets.AUTOMERGE_TOKEN }}