-
Notifications
You must be signed in to change notification settings - Fork 253
36 lines (34 loc) · 1.04 KB
/
dep-autoapprove.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
34
35
36
---
name: Dependabot auto-approve
on: pull_request
permissions:
pull-requests: write
jobs:
dependabot-approve:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'target/goalert'
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
- name: Run make generate
run: make generate
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply make generate changes
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}