From d0e05950a9f7afc18aece7787b09c09a4aa6e0b0 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Mon, 19 Aug 2024 22:01:59 -0400 Subject: [PATCH] Add dependabot automerge workflow --- .github/workflows/dependabot-automerge.yml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dependabot-automerge.yml diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml new file mode 100644 index 0000000000..54cc5f085a --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,25 @@ +name: 'Automerge Dependabot' + +on: + pull_request_target: + types: [ opened, reopened ] + branches: + - dev + - master + +concurrency: + group: "dependabot-automerge-${{ github.head_ref || github.run_id }}-${{ github.event_name }}" + cancel-in-progress: true + +jobs: + automerge: + name: Enable Automerge on Dependabot PRs + runs-on: ubuntu-latest + if: github.event.pull_request.user.id == 49699333 + permissions: + pull-requests: write + steps: + - name: Enable Automerge + uses: daneden/enable-automerge-action@f8558b65c5b8d8bfb592c4e74e3d491624a38fbd #v1.0.2-ish + with: + github-token: ${{ secrets.GITHUB_TOKEN }}