Skip to content

Change username for the examples #27

Change username for the examples

Change username for the examples #27

Workflow file for this run

name: Pull Request Backporting
on:
pull_request_target:
types:
- closed
- labeled
env:
GITHUB_TOKEN: ${{ secrets.RH_PERF_BOT_TOKEN }}
NO_SQUASH_OPTION: true
jobs:
backporting:
name: "Backporting"
concurrency:
group: backporting-${{ github.head_ref }}
cancel-in-progress: true
# 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')
|| contains(github.event.pull_request.labels.*.name, 'backport-squash'))
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
runs-on: ubuntu-latest
steps:
- name: Override no-squash option
if: >
(github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'backport-squash'))
|| (github.event.action == 'labeled' && contains(github.event.label.name, 'backport-squash'))
shell: bash
run: |
echo "NO_SQUASH_OPTION=false" >> $GITHUB_ENV
- name: Backporting
uses: kiegroup/git-backporting@v4
with:
target-branch: 0.15.x
pull-request: ${{ github.event.pull_request.url }}
no-squash: ${{ env.NO_SQUASH_OPTION }}
strategy: ort
strategy-option: ours
enable-err-notification: true