-
-
Notifications
You must be signed in to change notification settings - Fork 165
33 lines (31 loc) · 1013 Bytes
/
dependabot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: merge dependabot
on:
pull_request:
types: [labeled]
jobs:
merge:
if: ${{github.event.label.name == 'dependabot'}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install tparse
run: go install github.com/mfridman/[email protected]
- run: |
make tidy
- run: |
make test
- run: |
bazel run //:gazelle-update-repos
- run: |
bazel build //...
- run: |
git config --local user.name 'Daisuke Maki'
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Run tidy / bazel+gazelle"
git push origin "HEAD:${GITHUB_HEAD_REF}"
gh pr review --approve "$PR_URL"
gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}