Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Commit c3b58b2

Browse files
authored
Add workflow for automatically merging Steward's PRs. (#334)
Signed-off-by: Ignacio Lucero <ignacio.lucero@moia.io>
1 parent f12065c commit c3b58b2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Scala Steward automatic merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
scala-steward-auto-merge:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.actor == 'scala-steward-for-moia[bot]' }}
12+
steps:
13+
- name: Enable auto-merge for Scala Steward PRs
14+
run: gh pr merge --auto --squash "$PR_URL"
15+
env:
16+
PR_URL: ${{github.event.pull_request.html_url}}
17+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)