name: Dependabot Automerge
on:
  pull_request_target:


jobs:
  auto-merge:
    runs-on: ubuntu-latest
    if: ${{ github.actor == 'dependabot[bot]' }}
    steps:
      - uses: actions/checkout@v2
      - uses: ahmadnassri/action-dependabot-auto-merge@v2.6
        with:
          config: .github/auto-merge.yml # Path to configuration file (relative to root)
          github-token: ${{ secrets.SEMENTIC_AND_DEPBOT_TOKEN }}
          approve: true # Automatically approve pull-requests