Add backporting action

If "backport <branch>" label is applied to a PR,
once the PR is merged, github-actions bot will create another PR targeting
<branch> and cherry-picking commits.
This commit is contained in:
Domen Kožar 2021-05-24 17:42:28 +02:00
parent 0f08ac1924
commit 031ea8124c
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246
1 changed files with 20 additions and 0 deletions

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

@ -0,0 +1,20 @@
name: Backport
on:
pull_request:
types: [closed]
jobs:
backport:
name: Create backport PRs
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
with:
# required to find all branches
fetch-depth: 0
- name: Create backport PRs
uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_workspace: ${{ github.workspace }}
version: 9b8949dcd4295d364b0939f07d0c7593598d26cd