diff --git a/.github/dependantbot-auto-merge.yml b/.github/dependantbot-auto-merge.yml new file mode 100644 index 0000000..61b7523 --- /dev/null +++ b/.github/dependantbot-auto-merge.yml @@ -0,0 +1,32 @@ + +name: 'Dependabot Automerge - Action' + +on: + pull_request: + +permissions: + pull-requests: write + issues: write + +jobs: + worker: + runs-on: ubuntu-latest + + if: github.actor == 'dependabot[bot]' + steps: + - name: 'Wait for status checks' + id: waitforstatuschecks + uses: WyriHaximus/github-action-wait-for-status@v1.2.0 + with: + ignoreActions: worker,WIP + checkInterval: 60 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: 'Automerge' + uses: pascalgn/automerge-action@v0.11.0 + if: steps.waitforstatuschecks.outputs.status == 'success' + env: + MERGE_LABELS: '' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + MERGE_DELETE_BRANCH: true