diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2021-06-15 09:16:49 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-06-15 09:18:26 -0300 |
commit | f676c1fa0db8acff8c4ea388a5f416660938c5f9 (patch) | |
tree | c3316f346443b8986afe8ee26bf7010da73f720c | |
parent | edab505893d3d8512cf59e6603160bbf36f55d69 (diff) | |
download | meta-freescale-f676c1fa0db8acff8c4ea388a5f416660938c5f9.tar.gz |
cicd: Add backport workflow
This allow for easier backport of PRs to existing releases.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Change-Id: I72a56eb47f37dd204ad2ae56368b8973f1fdf9cb
-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 | ||