Merge pull request #326 from Scrumplex/feat-backport-pr

This commit is contained in:
dada513 2022-03-21 15:55:12 +01:00 committed by GitHub
commit f2ca11688e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
.github/workflows/backport.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Backport PR to stable
on:
pull_request:
branches: [ develop ]
types: [ closed ]
jobs:
release_pull_request:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'backport')
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: Backport PR by cherry-pick-ing
uses: Nathanmalnoury/gh-backport-action@master
with:
pr_branch: 'stable'
github_token: ${{ secrets.GITHUB_TOKEN }}