File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Pull Request Backporting
2+
3+ on :
4+ pull_request_target :
5+ types : [closed, labeled]
6+ env :
7+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8+
9+ jobs :
10+ compute-targets :
11+ if : ${{ github.event.pull_request.state == 'closed' && github.event.pull_request.merged }}
12+ runs-on : ubuntu-latest
13+ outputs :
14+ target-branches : ${{ steps.set-targets.outputs.targets }}
15+ env :
16+ LABELS : ${{ toJSON(github.event.pull_request.labels) }}
17+ steps :
18+ - name : Set target branches
19+ id : set-targets
20+ uses : kiegroup/kie-ci/.ci/actions/parse-labels@main
21+ with :
22+ labels : ${LABELS}
23+
24+ backporting :
25+ if : ${{ github.event.pull_request.state == 'closed' && github.event.pull_request.merged && needs.compute-targets.outputs.target-branches != '[]' }}
26+ name : " [${{ matrix.target-branch }}] - Backporting"
27+ runs-on : ubuntu-latest
28+ needs : compute-targets
29+ strategy :
30+ matrix :
31+ target-branch : ${{ fromJSON(needs.compute-targets.outputs.target-branches) }}
32+ fail-fast : false
33+ env :
34+ REVIEWERS : ${{ toJSON(github.event.pull_request.requested_reviewers) }}
35+ steps :
36+ - name : Backporting
37+ uses : kiegroup/kie-ci/.ci/actions/backporting@main
38+ with :
39+ target-branch : ${{ matrix.target-branch }}
You can’t perform that action at this time.
0 commit comments