diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ba04159..6de8a35 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -73,3 +73,18 @@ jobs: || contains(needs.*.result, 'skipped') }} run: exit 1 + auto-merge-dependabot: + name: Auto merge dependabot PR + needs: [lint, unit-test] + if: ${{ (github.event_name == 'pull_request') && (github.actor == 'dependabot[bot]') }} + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write + steps: + - name: Squash and Merge PR from dependabot + uses: fastify/github-action-merge-dependabot@v3.6.4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + merge-method: squash + \ No newline at end of file