From 031ea8124ced3bb2bd5522933140713d0c4d8362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Mon, 24 May 2021 17:42:28 +0200 Subject: [PATCH] Add backporting action If "backport " label is applied to a PR, once the PR is merged, github-actions bot will create another PR targeting and cherry-picking commits. --- .github/workflows/backport.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/backport.yml diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 00000000000..375132133ca --- /dev/null +++ b/.github/workflows/backport.yml @@ -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