diff --git a/.github/workflows/cherry-pick.yml b/.github/workflows/cherry-pick.yml new file mode 100644 index 00000000..3fae869e --- /dev/null +++ b/.github/workflows/cherry-pick.yml @@ -0,0 +1,28 @@ +on: + pull_request: + branches: + - main + types: ["closed"] + +jobs: + cherry_pick_release_1_0: + runs-on: ubuntu-latest + name: Cherry pick into release-1.0 branch + if: ${{ contains(github.event.pull_request.labels.*.name, 'cherry-pick-release-1.0') && github.event.pull_request.merged == true }} + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Cherry pick into release-1.0 branch + uses: carloscastrojumo/github-cherry-pick-action@v1.0.10 + with: + branch: release-1.0 + labels: | + cherry-pick + reviewers: | + aReviewerUser + title: '[cherry-pick] {old_title}' + body: 'Cherry picking #{old_pull_request_id} onto this branch' +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}