Skip to content

Bump kiegroup/git-backporting from 4.3.0 to 4.4.0 #117

Bump kiegroup/git-backporting from 4.3.0 to 4.4.0

Bump kiegroup/git-backporting from 4.3.0 to 4.4.0 #117

Workflow file for this run

name: Pull Request backporting
on:
pull_request_target:
types:
- closed
- labeled
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-v1')
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport-v1')
)
)
runs-on: ubuntu-latest
steps:
- name: Generate a token from the gophercloud-backport-bot github-app
id: generate_token
uses: tibdex/github-app-token@v1.8.0
with:
app_id: ${{ secrets.BACKPORT_APP_ID }}
private_key: ${{ secrets.BACKPORT_APP_PRIVATE_KEY }}
- name: Backporting
uses: kiegroup/git-backporting@4313be48e73b299a20b3c8290fd1ea8704e8dd5e
with:
target-branch: v1
pull-request: ${{ github.event.pull_request.url }}
auth: ${{ steps.generate_token.outputs.token }}
no-squash: true
strategy-option: find-renames