Skip to content

Commit d97d068

Browse files
authored
Merge branch 'main' into renovate/go-minor-dependencies-(auto-merge)
2 parents 994dc7b + d33e701 commit d97d068

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: auto-approve
2+
on: pull_request
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
auto-approve:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'renovate[bot]' || github.actor == 'dependabot[bot]' }}
12+
steps:
13+
- name: Approve Renovate PR
14+
run: gh pr review --approve "$PR_URL"
15+
env:
16+
PR_URL: ${{github.event.pull_request.html_url}}
17+
GITHUB_TOKEN: ${{ secrets.GYGROBOT_TOKEN }}
18+
19+
- name: auto-merge Dependabot PRs
20+
if: ${{ github.actor == 'dependabot[bot]' }}
21+
run: gh pr merge --auto --squash "$PR_URL"
22+
env:
23+
PR_URL: ${{github.event.pull_request.html_url}}
24+
GITHUB_TOKEN: ${{ secrets.GYGROBOT_TOKEN }}

0 commit comments

Comments
 (0)