github.com/oam-dev/kubevela@v1.9.11/.github/workflows/back-port.yml (about)

     1  name: Backport
     2  on:
     3    pull_request_target:
     4      types:
     5        - closed
     6  
     7  permissions:
     8    contents: read
     9  
    10  jobs:
    11    # align with crossplane's choice https://github.com/crossplane/crossplane/blob/master/.github/workflows/backport.yml
    12    open-pr:
    13      runs-on: ubuntu-22.04
    14      if: github.event.pull_request.merged
    15      permissions:
    16        contents: write
    17        pull-requests: write
    18      steps:
    19        - name: Checkout
    20          uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
    21          with:
    22            fetch-depth: 0
    23  
    24        - name: Open Backport PR
    25          uses: zeebe-io/backport-action@08bafb375e6e9a9a2b53a744b987e5d81a133191
    26          with:
    27            github_token: ${{ secrets.GITHUB_TOKEN }}
    28            github_workspace: ${{ github.workspace }}