-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
85 lines (84 loc) · 2.85 KB
/
action.yml
File metadata and controls
85 lines (84 loc) · 2.85 KB
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
78
79
80
81
82
83
84
85
name: push-gha-metrics-action
description:
Push metrics collected from the currently executing job to as loki logs
inputs:
id:
required: true
description: A unique ID to use for this workflow, helps to keep metrics together when workflow names change
# See https://github.com/actions/github-script/blob/00e1b58cd9e040d944127e75b3d9df586e4b0479/action.yml#L13
# You can access github action context within default values
github-token:
required: true
description:
"The github token used to make API requests to gather metrics data"
default: ${{ github.token }}
this-job-name:
required: false
description:
The name of the currently running job, needed when the `job[job_id].name`
key is specified, and when matrices are used.
basic-auth:
required: false
description:
Basic auth to use to sending requests to loki, such as "bobsmith:hunter2"
org-id:
required: false
description:
The organization/tenant id to use when sending requests to loki.
See https://grafana.com/docs/loki/latest/operations/multi-tenancy/.
hostname:
required: true
description:
The hostname of the loki instance to connect to, such as
"my-logs.grafana.net"
protocol:
required: true
default: https
description:
The protocol to use when sending requests to loki such as "http" or
"https". Defaults to "https"
port:
required: true
default: "443"
description:
The port to use when sending requests to loki such as "443".
Defaults to "443"
path:
required: true
default: "/loki/api/v1/push"
description: The endpoint path to /loki/api/v1/push
dry-run:
required: true
default: "false"
description:
"Execute the action till the point of sending a loki request, but don't
actually send the request"
timeout:
required: true
default: "3000"
description:
The timeout in milliseconds to use when sending requests to loki
test-results-file:
required: false
default: ""
description: |
Json test result file to attach to the output logs, available types: go
example: {"testType":"go","filePath":"./go_test_results_path.json"}
test-results-batch-split-size:
required: false
default: "524288"
description: The byte size to break apart metric logs into. Defaults to 512 KB (1 * 1024 * 512)
additional-information:
required: false
description: |
JSON field to pass an additional information about msig proposals
example: {"source": "msig proposal", "data": {"network": "mainnet", "command": "command 1"}}
matrix-aggregator-status:
required: false
description: |
Used to collect the status of an aggregation job. Mostly useful to know whether it was
a normal success or a cancelled job
runs:
using: "node20"
main: "dist/index.js"
post: "dist/index.js"