diff options
-rw-r--r-- | .github/workflows/backport.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ | |||
1 | name: Backport | ||
2 | on: | ||
3 | pull_request_target: | ||
4 | types: [closed, labeled] | ||
5 | jobs: | ||
6 | backport: | ||
7 | name: Backport Pull Request | ||
8 | if: github.repository_owner == 'Freescale' && github.event.pull_request.merged == true | ||
9 | runs-on: ubuntu-latest | ||
10 | steps: | ||
11 | - uses: actions/checkout@v2 | ||
12 | with: | ||
13 | # required to find all branches | ||
14 | fetch-depth: 0 | ||
15 | ref: ${{ github.event.pull_request.head.sha }} | ||
16 | - name: Create backport PRs | ||
17 | # should be kept in sync with `version` | ||
18 | uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd | ||
19 | with: | ||
20 | github_token: ${{ secrets.GITHUB_TOKEN }} | ||
21 | github_workspace: ${{ github.workspace }} | ||
22 | # should be kept in sync with `uses` | ||
23 | version: 9b8949dcd4295d364b0939f07d0c7593598d26cd | ||