aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/backport.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/backport.yml')
-rw-r--r--.github/workflows/backport.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml
new file mode 100644
index 00000000..fa287a2c
--- /dev/null
+++ b/.github/workflows/backport.yml
@@ -0,0 +1,19 @@
+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@v3
+ with:
+ fetch-depth: 0
+ - name: Backport PR by cherry-pick-ing
+ uses: Nathanmalnoury/gh-backport-action@master
+ with:
+ pr_branch: 'stable'
+ github_token: ${{ secrets.GITHUB_TOKEN }}