build(deps-dev): bump org.jenkins-ci.plugins:jobConfigHistory from 2.23 to 1229.v3039470161a_d in /jenkins-pipeline-shared-libraries #426
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Backporting | |
on: | |
pull_request_target: | |
types: [closed, labeled] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
compute-targets: | |
if: ${{ github.event.pull_request.state == 'closed' && github.event.pull_request.merged }} | |
runs-on: ubuntu-latest | |
outputs: | |
target-branches: ${{ steps.set-targets.outputs.targets }} | |
env: | |
LABELS: ${{ toJSON(github.event.pull_request.labels) }} | |
steps: | |
- name: Set target branches | |
id: set-targets | |
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/parse-labels@main | |
with: | |
labels: ${LABELS} | |
backporting: | |
if: ${{ github.event.pull_request.state == 'closed' && github.event.pull_request.merged && needs.compute-targets.outputs.target-branches != '[]' }} | |
name: "[${{ matrix.target-branch }}] - Backporting" | |
runs-on: ubuntu-latest | |
needs: compute-targets | |
strategy: | |
matrix: | |
target-branch: ${{ fromJSON(needs.compute-targets.outputs.target-branches) }} | |
fail-fast: false | |
steps: | |
- name: Backporting | |
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/backporting@main | |
with: | |
target-branch: ${{ matrix.target-branch }} |