-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
50 lines (50 loc) · 1.96 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
name: telemetry
description: "Save workflow run data to a remote endpoint or an artifact"
inputs:
endpoint:
description: >
The URL to an HTTP endpoint to which this action will send telemetry data. Specifically,
if `endpoint` is a valid endpoint, `telemetry` will send a POST request the endpoint
containing JSON-formatted telemetry data in the request body. If this field is left blank,
`create_artifact` must be set to `true`. Otherwise, this action will fail immediately.
default: ''
required: false
create_artifact:
description: >
Boolean describing if this workflow should produce an artifact containing telemetry data.
The data will be saved as JSON, and will contain all the same data as what is sent to `endpoint`.
The artifact will be named `telemetry`.
default: false
required: false
log_date:
description: >
Boolean describing if `telemetry` should log the date and time of the workflow run.
default: true
required: false
user:
description: >
Username of the user that triggered the workflow run. If this field is left empty, this information
will not be logged.
default: ''
required: false
autograding_status:
description: >
`autograding`'s exit code. If this field is left blank, this information is not logged.
default: null
required: false
points:
description: >
String containing the ratio of points earned to total points from the `autograding` action.
If the `autograding` action has not been used in the same workflow as this action or if this
action is used earlier than `autograding` in a workflow, this field should always be left
to its default value.
default: null
required: false
assignment:
description: >
The name of the assignment for which data is being logged. If empty, this field will not be entered.
default: ''
required: false
runs:
using: "node16"
main: "./dist/index.js"