chore(deps): bump korthout/backport-action from 52886ff43ef0184911d99c0a489f5c1307db8fc7 to 4f9bbdad6454a96999af41d5fd3e91d8c4a7c2ee #8014
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: Backport | |
on: | |
pull_request_target: | |
types: [closed, labeled] # runs when the pull request is closed/merged or labeled (to trigger a backport in hindsight) | |
permissions: | |
contents: write # so it can comment | |
pull-requests: write # so it can create pull requests | |
actions: write | |
jobs: | |
backport: | |
name: Backport | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create backport pull requests | |
uses: korthout/backport-action@4f9bbdad6454a96999af41d5fd3e91d8c4a7c2ee # v2.4.1 | |
id: backport | |
with: | |
github_token: ${{ secrets.PAT }} | |
pull_title: '[backport -> ${target_branch}] ${pull_title}' | |
merge_commits: 'skip' | |
copy_labels_pattern: ^(?!backport ).* # copies all labels except those starting with "backport " | |
label_pattern: ^backport (release\/[^ ]+)$ # filters for labels starting with "backport " and extracts the branch name | |
pull_description: |- | |
Automated backport to `${target_branch}`, triggered by a label in #${pull_number}. | |
## Original description | |
${pull_description} | |
copy_assignees: true | |
copy_milestone: true | |
copy_requested_reviewers: true | |
experimental: > | |
{ | |
"detect_merge_method": true | |
} | |
- name: add label | |
if: steps.backport.outputs.was_successful == 'false' | |
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1.1.0 | |
with: | |
labels: incomplete-backport |