diff --git a/.github/workflows/auto-accept-dependabot.yml b/.github/workflows/auto-accept-dependabot.yml new file mode 100644 index 0000000..b04fabe --- /dev/null +++ b/.github/workflows/auto-accept-dependabot.yml @@ -0,0 +1,20 @@ +name: auto-accept-dependabot + +on: + pull_request_target: + +jobs: + auto-merge: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - uses: ahmadnassri/action-dependabot-auto-merge@v2 + with: + config: .github/auto-merge.yml + command: "squash and merge" + github-token: ${{ secrets.AUTO_MERGE_TOKEN }}