From 14076ae55065cbba70b63d5d686763800c0e0da1 Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Wed, 30 Mar 2022 20:58:38 +1100 Subject: [PATCH] chore: create auto-merge for dependabot PRs --- .github/workflows/auto-merge.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/auto-merge.yml diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..de80807 --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,13 @@ +name: Auto-Merge +on: + pull_request_target + +jobs: + enable-auto-merge: + runs-on: ubuntu-latest + + if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies') + steps: + - uses: alexwilson/enable-github-automerge-action@main + with: + github-token: "${{ secrets.GITHUB_TOKEN }}"