Skip to content

Commit 5a8b033

Browse files
build: auto-merge dependency updates
1 parent ad2840f commit 5a8b033

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed
Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
1-
name: Auto approve PRs
1+
name: Dependabot auto-merge
22
on:
33
pull_request
44
jobs:
55
dependabot:
66
runs-on: ubuntu-latest
7+
if: github.actor == 'dependabot[bot]'
78
steps:
8-
- uses: hmarr/auto-approve[email protected]
9-
if: github.actor == 'dependabot[bot]'
9+
- name: 'Auto approve PR by Dependabot'
10+
uses: hmarr/[email protected]
1011
with:
11-
github-token: "${{ secrets.GITHUB_TOKEN }}"
12+
github-token: "${{ secrets.TYPESTACK_BOT_TOKEN }}"
13+
- name: 'Comment merge command'
14+
uses: actions/github-script@v3
15+
with:
16+
github-token: ${{secrets.TYPESTACK_BOT_TOKEN }}
17+
script: |
18+
await github.issues.createComment({
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
issue_number: context.issue.number,
22+
body: '@dependabot squash and merge'
23+
})

0 commit comments

Comments
 (0)