forked from hazelcast/hz-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 913 Bytes
/
backport.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Backport changes to all maintenance branches
on:
push:
branches:
- main
jobs:
get-branches:
runs-on: ubuntu-latest
outputs:
branches: "['5.0', '5.1', '5.2', '5.3', '5.4', '5.5']"
steps:
- run: exit 0
backport-all:
needs: get-branches
strategy:
fail-fast: true
matrix:
branch: ${{ fromJSON(needs.get-branches.outputs.branches) }}
uses: ./.github/workflows/backport-workflow.yml
with:
label: '["backport to all versions"]'
target-branch: v/${{ matrix.branch }}
secrets: inherit
backport-specified:
needs: get-branches
strategy:
fail-fast: true
matrix:
branch: ${{ fromJSON(needs.get-branches.outputs.branches) }}
uses: ./.github/workflows/backport-workflow.yml
with:
label: '["backport to ${{ matrix.branch }}"]'
target-branch: v/${{ matrix.branch }}
secrets: inherit