[0.12.x] Execute TEST_NEW actions with the test id #608
Workflow file for this run
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 using Git Backporting | |
on: | |
pull_request_target: | |
types: | |
- closed | |
- labeled | |
env: | |
GITHUB_TOKEN: ${{ secrets.BACKPORT_TOKEN }} | |
jobs: | |
backporting: | |
name: "Backporting" | |
# Only react to merged PRs for security reasons. | |
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target. | |
if: > | |
github.event.pull_request.merged | |
&& ( | |
github.event.action == 'closed' | |
&& contains(github.event.pull_request.labels.*.name, 'backport') | |
|| ( | |
github.event.action == 'labeled' | |
&& contains(github.event.label.name, 'backport') | |
) | |
) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Backporting | |
uses: kiegroup/[email protected] | |
with: | |
target-branch: 0.11.x | |
pull-request: ${{ github.event.pull_request.url }} | |
auth: ${{ secrets.BACKPORT_TOKEN }} | |
no-squash: true |