Skip to content

Commit a176109

Browse files
authored
Merge pull request #252 from sgibson91/sgibson91-patch-1
Add GitHub Actions workflow for auto-merging bot PRs
2 parents ee1dc33 + 1d12bbf commit a176109

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Auto-merge bot PRs
2+
3+
on: pull_request
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
automerge:
11+
runs-on: ubuntu-latest
12+
if: (github.event.pull_request.user.login == 'dependabot[bot]' ||
13+
github.event.pull_request.user.login == 'pre-commit-ci[bot]') &&
14+
github.repository == 'sgibson91/bump-helm-deps-action'
15+
steps:
16+
- name: Enable auto-merge for bot PRs
17+
run: gh pr merge --auto --merge "$PR_URL"
18+
env:
19+
PR_URL: ${{ github.event.pull_request.html_url }}
20+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)