2024-12-11_01-36-07_master-next_aws-cli #3236
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: auto-backport | |
on: | |
pull_request_target: | |
branches: | |
- master-next | |
types: ["closed"] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
backport: | |
name: Backport pull request | |
runs-on: ubuntu-22.04 | |
# Only run when pull request is merged and labeled 'backport' | |
if: (github.event.pull_request.merged == true ) && | |
(contains(github.event.pull_request.labels.*.name, 'version-upgrade') || contains(github.event.pull_request.labels.*.name, 'auto-backport')) | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Create backport pull requests | |
uses: korthout/backport-action@v3.1.0 | |
with: | |
target_branches: kirkstone-next scarthgap-next styhead-next | |
# copy all labels (backport labels are automatically skipped) | |
copy_labels_pattern: .+ | |
github_token: ${{ secrets.BOT_CREDENTIAL }} |