aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/backport.yml
blob: e1a7cffad8d67482f1cecc7da31633495f3e284e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 }}