Skip to content

Commit

Permalink
Add workflow to auto cherry-pick PR to release branch release-1.0
Browse files Browse the repository at this point in the history
Cherry-pick will be triggered once branch is merged and it's labelled
cherry-pick-release-1.0.

Signed-off-by: Anil Vishnoi <[email protected]>
  • Loading branch information
vishnoianil committed Oct 2, 2024
1 parent 789c38c commit 2fd3c52
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cherry-pick.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

0 comments on commit 2fd3c52

Please sign in to comment.