Skip to content

Commit

Permalink
pr_action
Browse files Browse the repository at this point in the history
  • Loading branch information
yuokamoto committed Nov 3, 2023
1 parent dd630ab commit 365de18
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,30 @@ name: Create a pull request to other versions

on:
pull_request:
# push: # for test
branches:
- test_action
# - devel
# - UE5_devel_humble
types:
- closed
- devel
- UE5_devel_humble
types: ["closed"]

workflow_dispatch:

permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: write
discussions: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write

jobs:
create_pr:
runs-on: ubuntu-latest
name: create_pr to other branchs
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
matrix:
version:
- devel
- UE5_devel_humble
- test_action
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
if: matrix.version != github.base_ref
with:
ref: ${{ matrix.version }}
Expand All @@ -60,6 +46,6 @@ jobs:
reviewers: |
${{ github.event.pull_request.user.login }}
token: ${{ secrets.GITHUB_TOKEN }}
cherry-pick-branch: auto_created_${{ matrix.version }}_${{ github.event.pull_request.title }}
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'

0 comments on commit 365de18

Please sign in to comment.