Skip to content

Commit 625d151

Browse files
Add auto merge pr workflow (AST-000)
1 parent 1dcba7b commit 625d151

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/auto-merge-pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Post-Check Actions
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: write
6+
7+
jobs:
8+
dependabot-merge:
9+
runs-on: ubuntu-latest
10+
if: contains(github.head_ref, 'feature/update_cli')
11+
steps:
12+
- name: Enable auto-merge for Dependabot PRs
13+
env:
14+
PR_URL: ${{github.event.pull_request.html_url}}
15+
GITHUB_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN }}
16+
run: gh pr merge --auto --merge "$PR_URL"
17+
- name: Auto approve dependabot PRs
18+
uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 #v4
19+
with:
20+
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)