-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaction.yml
51 lines (51 loc) · 1.34 KB
/
action.yml
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
name: 'README helper'
description: 'A helper to generate README automatically'
inputs:
pattern:
description: 'The pattern of the items'
required: true
default: 'items/*.yaml'
template:
description: 'The template file path'
required: false
default: 'README.tpl'
output:
description: 'The output of the render result'
required: true
default: 'README.md'
username:
description: 'The username of the git repository'
required: true
org:
description: 'The org of the current repo'
required: true
repo:
description: 'The repo name'
required: true
sortby:
description: 'The field which sort by'
required: false
groupby:
description: 'The filed which group by'
required: false
push:
description: 'Indicate if you want to push the changes automatically'
default: 'true'
required: true
tool:
description: 'The tool name which you want to install'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- --pattern=${{ inputs.pattern }}
- --username=${{ inputs.username }}
- --org=${{ inputs.org }}
- --repo=${{ inputs.repo }}
- --sortby=${{ inputs.sortby }}
- --groupby=${{ inputs.groupby }}
- --output=${{ inputs.output }}
- --template=${{ inputs.template }}
- --push=${{ inputs.push }}
- --tool=${{ inputs.tool }}