generated from austenstone/action-typescript
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
70 lines (69 loc) · 1.97 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
name: Copilot Usage Action
author: Austen Stone
description: Get reports on GitHub Copilot Usage
branding:
icon: "bar-chart-2"
color: "blue"
inputs:
github-token:
description: The GitHub token used to create an authenticated client
required: true
enterprise:
description: The GitHub enterprise slug
required: false
organization:
description: The organization slug
default: ${{ github.repository_owner }}
required: false
team:
description: The team slug
required: false
days:
description: The number of days to show usage metrics for.
required: false
since:
description: Show usage metrics since this date. This is a timestamp in the format (YYYY-MM-DD). Maximum value is 28 days ago.
required: false
until:
description: Show usage metrics until this date. This is a timestamp in the format (YYYY-MM-DD). Maximum value is 28 days ago.
required: false
job-summary:
description: Whether to generate a report
required: false
default: true
json:
description: Whether to generate JSON as a workflow artifact
required: false
default: true
csv:
description: Whether to generate CSV as a workflow artifact
required: false
default: false
csv-options:
description: Options for the CSV generation
required: false
xml:
description: Whether to generate XML as a workflow artifact
required: false
default: false
xml-options:
description: Options for the XML generation
required: false
time-zone:
description: The time zone to use for the report
required: false
default: "UTC"
artifact-name:
description: The name of the artifact to create
required: false
default: "copilot-usage"
outputs:
result:
description: The copilot usage as a JSON string
since:
description: The date since which the usage metrics are shown
until:
description: The date until which the usage metrics are shown
runs:
using: "node20"
main: "dist/index.js"