@@ -9,26 +9,3 @@ jobs:
99 go-version-file: ./go.mod
1010 secrets:
1111 gh_pat: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
12−
13− dependabot:
14− needs: [build, lint]
15− runs-on: ubuntu-latest
16− permissions:
17− pull-requests: write
18− contents: write
19− if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
20− steps:
21− - id: metadata
22− uses: dependabot/fetch-metadata@v2
23− with:
24− github-token: "${{ secrets.GITHUB_TOKEN }}"
25− - run: |
26− echo "Logging in..."
27− echo "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | gh auth login --with-token
28− echo "Approving..."
29− gh pr review --approve "$PR_URL"
30− echo "Merging..."
31− gh pr merge --squash --auto "$PR_URL"
32− env:
33− PR_URL: ${{github.event.pull_request.html_url}}
34− GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}