Skip to content

Commit 6b93a39

Browse files
committed
ci: update
1 parent e761d4b commit 6b93a39

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/build.yml

+18
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,21 @@ jobs:
2525
with:
2626
token: ${{ secrets.CODECOV_TOKEN }}
2727
file: ./coverage.txt
28+
dependabot:
29+
needs: [build]
30+
runs-on: ubuntu-latest
31+
permissions:
32+
pull-requests: write
33+
contents: write
34+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
35+
steps:
36+
- id: metadata
37+
uses: dependabot/fetch-metadata@v2
38+
with:
39+
github-token: "${{ secrets.GITHUB_TOKEN }}"
40+
- run: |
41+
gh pr review --approve "$PR_URL"
42+
gh pr merge --squash --auto "$PR_URL"
43+
env:
44+
PR_URL: ${{github.event.pull_request.html_url}}
45+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)