Skip to content

Commit

Permalink
[core] Automate cherry-pick of PRs from next -> master (#11382)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Cherniavskyi <andrew@mui.com>
  • Loading branch information
MBilalShafi and cherniavskii authored Dec 13, 2023
1 parent c85d38b commit 4cf9199
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cherry-pick-next-to-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
pull_request:
branches:
- next
types: ['closed']

jobs:
cherry_pick_to_master:
runs-on: ubuntu-latest
name: Cherry pick into master
permissions:
pull-requests: write
contents: write
if: ${{ contains(github.event.pull_request.labels.*.name, 'needs cherry-pick') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick and create the new PR
uses: carloscastrojumo/github-cherry-pick-action@v1.0.9
with:
branch: master
token: ${{ secrets.GITHUB_TOKEN }}
body: 'Cherry-pick of #{old_pull_request_id}'
labels: |
cherry-pick
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4cf9199

Please sign in to comment.