generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
30 lines (29 loc) · 815 Bytes
/
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
name: 'File Tree to JSON Action'
description: 'An action to write the directory structure starting at the provided path to an output json result.'
author: 'adairrr'
inputs:
search-path:
description: 'Path where searching files'
required: true
max-depth:
description: 'Max depth to search files'
default: '10'
required: false
only-dirs:
description: 'Only include directories'
default: 'false'
required: false
extension:
description: 'Only include files with this extension'
default: ''
required: false
end-with-array:
description: 'If there are still more files and max depth has been reached, include as an array?'
default: 'false'
required: false
outputs:
tree:
description: 'JSON file tree'
runs:
using: 'node16'
main: 'dist/index.js'