feat: support viploadbalancer controller #8829
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 | |
issue_comment: | |
types: | |
- created | |
jobs: | |
# align with kubevela's choice https://github.com/oam-dev/kubevela/blob/master/.github/workflows/back-port.yaml | |
build: | |
name: Create backport PRs | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write # so it can comment | |
pull-requests: write # so it can create pull requests | |
if: > | |
( | |
github.event_name == 'pull_request' && | |
github.event.pull_request.merged | |
) || ( | |
github.event_name == 'issue_comment' && | |
github.event.issue.pull_request && | |
contains(github.event.comment.body, '/backport') | |
) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create Backport PR | |
uses: zeebe-io/backport-action@v1.4.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
github_workspace: ${{ github.workspace }} |