-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
75 lines (75 loc) · 3.08 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
name: 'New Relic Capture Build Size'
description: 'Capture Build Size Stats To New Relic'
branding:
icon: 'upload-cloud'
color: 'green'
inputs:
analysis-file-contents:
description: 'Build analysis file contents -- Takes precendence over analysis-file-url when both are supplied.'
required: false
analysis-file-url:
description: 'Public URL to the analysis file - When supplied without the analysis-file-contents, will fetch the file contents from the URL. It will decorate all events created with a link to the uploaded asset.'
required: false
analysis-type:
description: 'Type of analysis file'
required: true
default: 'webpack'
options:
- 'webpack' # could add other types later if demand arises
- 'manual'
commit:
description: 'Commit identifier of the build - defaults to the sha of the commit that triggered the build'
required: false
default: '${{ github.sha }}'
event-type:
description: 'Type of event to be captured - defaults to BuildSize'
required: false
default: 'BuildSize'
file-name-filter:
description: 'Only include file names that include this string - defaults to include everything'
required: false
manual-analysis-file-name:
description: 'Manually supply the file name of your build - Takes precendence over analysis-file-contents and analysis-file-url when supplied. Only works if analysis-type is "manual"'
required: false
manual-analysis-file-size:
description: 'Manually supply the size of your build - Takes precendence over analysis-file-contents and analysis-file-url when supplied. Only works if analysis-type is "manual"'
required: false
manual-analysis-gzip-size:
description: 'Manually supply the gzip size of your build - Takes precendence over analysis-file-contents and analysis-file-url when supplied. Only works if analysis-type is "manual"'
required: false
nr-account-id:
description: 'NR Account ID to be used to capture events'
required: true
nr-api-key:
description: 'NR API key to be used to capture events'
required: true
nr-env:
description: 'NR Environment to be used to capture events'
required: false
default: 'US'
options:
- 'staging'
- 'US'
# - 'EU' // need to confirm what the domain is for this
traverse:
description: 'When true, will traverse all subtrees and capture events for each item - defaults to false'
default: false
required: false
trigger:
description: 'Trigger of the capturing the build size - defaults to the github workflow name. Can be useful if you have differing reasons or jobs for capturing the build size across your repository.'
required: false
default: '${{ github.workflow }}
user:
description: 'User who triggered the build - defaults to the github actor property'
required: false
default: '${{ github.actor }}'
version:
description: 'Version of the build - defaults to the github ref name'
required: false
default: '${{ github.ref_name }}'
outputs:
api-response:
description: 'The response from NR API'
runs:
using: 'node20'
main: 'dist/index.js'