-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: yuokamoto <[email protected]>
- Loading branch information
1 parent
d097a2a
commit 66c2441
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Create a pull request to other versions | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- devel | ||
- UE5.2 | ||
- UE5.3 | ||
types: ["closed"] | ||
|
||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
create_pr: | ||
runs-on: ubuntu-latest | ||
name: create_pr to other branchs | ||
if: github.event.pull_request.merged == true | ||
strategy: | ||
matrix: | ||
version: | ||
- devel | ||
- UE5.2 | ||
- UE5.3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
if: matrix.version != github.base_ref | ||
with: | ||
ref: ${{ matrix.version }} | ||
- name: Debug | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
echo ${{ matrix.version }}, ${{ github.base_ref }}, $GITHUB_SHA. ${{ github.event.pull_request.user.login }} | ||
- name: Cherry pick and create PR | ||
if: matrix.version != github.base_ref | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: carloscastrojumo/[email protected] | ||
with: | ||
branch: ${{ matrix.version }} | ||
labels: | | ||
cherry-pick | ||
reviewers: | | ||
${{ github.event.pull_request.user.login }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
cherry-pick-branch: auto_created_${{ matrix.version }}_${{ github.sha }} | ||
title: '[cherry-pick to ${{ matrix.version }} from ${{ github.base_ref }}] ${{ github.event.pull_request.title }}' | ||
body: 'Cherry picking ${{ github.event.pull_request.title }} onto this branch' |