Skip to content

Commit

Permalink
DevKit updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored and jordisala1991 committed Apr 27, 2023
1 parent b11862f commit 39a3808
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/auto-merge-dev-kit.yaml
@@ -0,0 +1,28 @@
# DO NOT EDIT THIS FILE!
#
# It's auto-generated by sonata-project/dev-kit package.

name: Auto merge Dev-Kit PRs

on:
pull_request_target:
branches:
- 1.x
- 2.x
types: [labeled]

jobs:
auto-merge:
runs-on: ubuntu-latest

if: github.event.pull_request.user.login == 'SonataCI' && github.event.label.name == 'automerge'

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Auto merge PR when conditions are met
run: gh pr merge --repo "${{ github.repository }}" --rebase --auto "${{ github.event.pull_request.number }}"

- name: Auto approve PR
run: gh pr review --repo "${{ github.repository }}" --approve "${{ github.event.pull_request.number }}"

0 comments on commit 39a3808

Please sign in to comment.