Skip to content

Commit

Permalink
Merge pull request #2032 from actiontech/support-pr-action
Browse files Browse the repository at this point in the history
Support pr action
  • Loading branch information
ColdWaterLW authored Nov 16, 2023
2 parents ba9d34c + 13462e9 commit 2486fe0
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/pr-ce-release-2-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ on:

jobs:
cherry_pick_release_2_main:
if: github.event.pull_request.merged == true && github.repository == 'actiontech/sqle'
if: contains(github.event.pull_request.labels.*.name, 'need_cherry_pick')
runs-on: ubuntu-latest
name: Cherry pick into main
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into main
uses: Nathanmalnoury/gh-backport-action@master
with:
pr_branch: 'main'
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Create PR to main
uses: carloscastrojumo/[email protected]
with:
branch: ${{ github.repository == 'actiontech/sqle-ee' && 'main-ee' || 'main' }}
labels: |
cherry-pick
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2486fe0

Please sign in to comment.