|
|
@ -4,15 +4,11 @@ on:
|
|
|
|
pull_request_target:
|
|
|
|
pull_request_target:
|
|
|
|
types: [closed, labeled]
|
|
|
|
types: [closed, labeled]
|
|
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
pull-request:
|
|
|
|
pull-request:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
if: github.event.pull_request.state == 'closed' && github.event.pull_request.merged && (github.event_name != 'labeled' || startsWith('backport:', github.event.label.name))
|
|
|
|
if: github.event.pull_request.state == 'closed' && github.event.pull_request.merged && (github.event_name != 'labeled' || startsWith('backport:', github.event.label.name))
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
- name: Checkout
|
|
|
@ -23,8 +19,8 @@ jobs:
|
|
|
|
uses: korthout/backport-action@bf5fdd624b35f95d5b85991a728bd5744e8c6cf2 # v1.3.1
|
|
|
|
uses: korthout/backport-action@bf5fdd624b35f95d5b85991a728bd5744e8c6cf2 # v1.3.1
|
|
|
|
# xref: https://github.com/korthout/backport-action#inputs
|
|
|
|
# xref: https://github.com/korthout/backport-action#inputs
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
# Use token to allow workflows to be triggered for the created PR
|
|
|
|
github_workspace: ${{ github.workspace }}
|
|
|
|
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
|
|
# Match labels with a pattern `backport:<target-branch>`
|
|
|
|
# Match labels with a pattern `backport:<target-branch>`
|
|
|
|
label_pattern: '^backport:([^ ]+)$'
|
|
|
|
label_pattern: '^backport:([^ ]+)$'
|
|
|
|
# A bit shorter pull-request title than the default
|
|
|
|
# A bit shorter pull-request title than the default
|
|
|
|