-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
77 lines (66 loc) · 1.52 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# action.yml
---
name: 'FX Data Generate Action'
description: 'Generates dummy Forex historical data in CSV format'
author: 'kenorb'
inputs:
CmdArgs:
description: 'Extra script arguments'
default: '-v'
OutputFile:
description: 'The filename to generate data to'
default: 'data.csv'
StartDate:
description: 'Starting date (in yyyy.mm.dd format)'
default: '2020.01.01'
EndDate:
description: 'Ending date (in yyyy.mm.dd format)'
default: '2020.01.31'
StartPrice:
description: 'Starting bid price'
default: 1.0
EndPrice:
description: 'Ending bid price'
default: 2.0
Density:
description: 'Data points per minute'
default: 1.0
Digits:
description: 'Decimal digits of prices'
default: 5
Pattern:
description: 'Modeling pattern'
default: 'none'
Spread:
description: 'Spread between prices (in points)'
default: 10
Volatility:
description: 'Volatility factor'
default: 1.0
# outputs:
# foo: # id of output
# description: 'Foo'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- '-o'
- '${{ inputs.OutputFile }}'
- '-d'
- '${{ inputs.Density }}'
- '-D'
- '${{ inputs.Digits }}'
- '-p'
- '${{ inputs.Pattern }}'
- '-s'
- '${{ inputs.Spread }}'
- '-V'
- '${{ inputs.Volatility }}'
- '${{ inputs.CmdArgs }}'
- '${{ inputs.StartDate }}'
- '${{ inputs.EndDate }}'
- '${{ inputs.StartPrice }}'
- '${{ inputs.EndPrice }}'
branding:
icon: 'bar-chart-2'
color: 'green'