Skip to content

Commit 0668414

Browse files
authored
Create version-updates.yml
Signed-off-by: Lala Sabathil <[email protected]>
1 parent 5182c43 commit 0668414

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/version-updates.yml

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

0 commit comments

Comments
 (0)