From f676c1fa0db8acff8c4ea388a5f416660938c5f9 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 15 Jun 2021 09:16:49 -0300 Subject: cicd: Add backport workflow This allow for easier backport of PRs to existing releases. Signed-off-by: Otavio Salvador Change-Id: I72a56eb47f37dd204ad2ae56368b8973f1fdf9cb --- .github/workflows/backport.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/backport.yaml (limited to '.github') diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml new file mode 100644 index 00000000..a39e7e58 --- /dev/null +++ b/.github/workflows/backport.yaml @@ -0,0 +1,23 @@ +name: Backport +on: + pull_request_target: + types: [closed, labeled] +jobs: + backport: + name: Backport Pull Request + if: github.repository_owner == 'Freescale' && github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + # required to find all branches + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - name: Create backport PRs + # should be kept in sync with `version` + uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + github_workspace: ${{ github.workspace }} + # should be kept in sync with `uses` + version: 9b8949dcd4295d364b0939f07d0c7593598d26cd -- cgit v1.2.3-54-g00ecf