mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
feat: Add optional input for repo name in split workflow (#6850)
This commit is contained in:
parent
6a261dcc63
commit
7c0e350916
16
.github/workflows/split.yml
vendored
16
.github/workflows/split.yml
vendored
@ -1,9 +1,16 @@
|
||||
name: Split Repos
|
||||
|
||||
on: [ workflow_dispatch ]
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
repo:
|
||||
description: 'Input repo name to split, e.g. di, cache, etc.'
|
||||
required: false
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
split:
|
||||
name: Split on branch ${{ github.ref }}
|
||||
if: github.repository == 'hyperf/hyperf'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
@ -24,4 +31,9 @@ jobs:
|
||||
git config pull.rebase true
|
||||
git config --global user.email "group@hyperf.io"
|
||||
git config --global user.name "Hyperf Developers"
|
||||
./bin/split-linux.sh
|
||||
|
||||
if [ -z "${{ github.event.inputs.repo }}" ]; then
|
||||
./bin/split-linux.sh
|
||||
else
|
||||
./bin/split-linux.sh ${{ github.event.inputs.repo }}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user