Skip to content

Commit

Permalink
Added workflow for automerging PRs from LEGO system (#14760)
Browse files Browse the repository at this point in the history
* Added workflow for automerging PRs from csigs

* Fix mapping

* Change wf name

* Add action only to PRs opened to Localisation branch
  • Loading branch information
EzzhevNikita authored Apr 22, 2021
1 parent 77f58d2 commit 923a354
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/localization-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'LEGO automerge'

on:
pull_request:
types:
- opened
branches:
- Localization

jobs:
worker:
runs-on: ubuntu-latest

if: github.actor == 'csigs'
steps:
- uses: actions/github-script@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.pulls.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
merge_method: 'squash'
})

0 comments on commit 923a354

Please sign in to comment.