-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
56 lines (56 loc) · 2.09 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
name: 'Optimizely - Custom Code Uploader'
description: 'A Github Action that enables Optimizely customers to upload custom JS / CSS to their projects'
branding:
icon: 'upload-cloud'
color: 'blue'
inputs:
optimizely-access-token:
description: 'Access Token for the Optimizely API'
required: true
code-file-path:
description: 'Path from root directory to file with custom code/CSS - required or provide in parameters-comment'
required: false
custom-code-level:
description: 'project, experiment, or variation - required or provide in parameters-comment'
required: false
default: 'variation'
custom-code-type:
description: 'custom_code or custom_css - required or provide in parameters-comment'
required: false
default: 'custom_code'
project-id:
description: 'Project ID - required for Project Level Changes'
required: false
experiment-id:
description: 'Experiment ID - required for Experiment / Variation Level Changes'
required: false
variation-id:
description: 'Variation ID - required for Variation Level Changes'
required: false
page-id:
description: 'Page ID - required for Variation Level Changes'
required: false
parameters-comment:
description: 'A string to parse that provides the required parameters - see the other parameters
to see what needs to be provided in this string'
required: false
no-comment:
description: 'A boolean indicating whether or not a comment should NOT be appended to the end of the custom code/CSS'
required: false
default: 'false'
custom-comment:
description: 'A string to be appended to the end of the custom code/CSS'
required: false
default: '"This code was uploaded via the Optimizely Upload Custom Code Github Action."'
fail-silently:
description: 'When set to true, only print errors in logs but does not fail entire workflow'
required: false
default: 'false'
outputs:
success:
description: 'Set to true if upload was successful'
error_reason:
description: 'Set to error reason if upload fails'
runs:
using: 'node12'
main: 'dist/index.js'