-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathaction.yaml
51 lines (47 loc) · 1.46 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# see https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#about-yaml-syntax-for-github-actions
name: 'Monorepo Split'
description: 'Split monorepo packages to many repositories'
author: "Tomas Votruba <[email protected]>"
inputs:
package_directory:
description: 'Local package directory'
required: true
repository_host:
description: 'Host'
default: 'github.com'
required: false
repository_organization:
description: 'Remote organization'
required: true
repository_name:
description: 'Remote repository'
required: true
branch:
description: 'Git branch'
default: 'main'
required: true
tag:
description: '[Optional] Tag to be released'
required: false
user_email:
description: 'Git User Email'
required: true
user_name:
description: 'Git User Name'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
# "GitHub stores input parameters as environment variables" - important!!!
- ${{ inputs.package_directory }} # => INPUT_PACKAGE_DIRECTORY
- ${{ inputs.repository_host }}
- ${{ inputs.repository_organization }}
- ${{ inputs.repository_name }}
- ${{ inputs.branch }}
- ${{ inputs.tag }}
- ${{ inputs.user_email }}
- ${{ inputs.user_name }}
branding:
icon: maximize-2
color: purple