@@ -9,3 +9,22 @@ jobs:
9 go-version-file: ./go.mod
9 go-version-file: ./go.mod
11 gh_pat: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
11 gh_pat: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
15+ runs-on: ubuntu-latest
19+ if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
22+ uses: dependabot/fetch-metadata@v2
24+ github-token: "${{ secrets.GITHUB_TOKEN }}"
26+ gh pr review --approve "$PR_URL"
27+ gh pr merge --squash --auto "$PR_URL"
29+ PR_URL: ${{github.event.pull_request.html_url}}
30+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}