Skip to content

Commit dea5e8f

Browse files
committed
ci: update
1 parent 1725f84 commit dea5e8f

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,21 @@ jobs:
4848
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
4949
AUR_KEY: ${{ secrets.AUR_KEY }}
5050
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
51+
dependabot:
52+
needs: [build]
53+
runs-on: ubuntu-latest
54+
permissions:
55+
pull-requests: write
56+
contents: write
57+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}}
58+
steps:
59+
- id: metadata
60+
uses: dependabot/fetch-metadata@v2
61+
with:
62+
github-token: "${{ secrets.GITHUB_TOKEN }}"
63+
- run: |
64+
gh pr review --approve "$PR_URL"
65+
gh pr merge --squash --auto "$PR_URL"
66+
env:
67+
PR_URL: ${{github.event.pull_request.html_url}}
68+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)