You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+23-9
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
# Action
1
+
# Copilot Usage Action
2
2
3
-
This repository serves as a [template](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template) for TypeScript [Actions](https://docs.github.com/en/actions).
3
+
Get Copilot usage data as a job summary.
4
4
5
5
## Usage
6
-
Create a workflow (eg: `.github/workflows/seat-count.yml`). See [Creating a Workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
6
+
Create a workflow (eg: `.github/workflows/copilot-usage.yml`). See [Creating a Workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
7
7
8
8
9
9
### PAT(Personal Access Token)
@@ -27,22 +27,36 @@ jobs:
27
27
name: Run Action
28
28
runs-on: ubuntu-latest
29
29
steps:
30
-
- uses: austenstone/action-typescript@main
30
+
- uses: austenstone/copilot-usage@main
31
+
with:
32
+
enterprise: github
33
+
job-summary: true
34
+
csv: true
35
+
github-token: ${{ secrets.TOKEN }}
31
36
```
32
37
33
38
## ➡️ Inputs
34
39
Various inputs are defined in [`action.yml`](action.yml):
35
40
36
41
| Name | Description | Default |
37
-
| --- | - | - |
38
-
| github‑token | Token to use to authorize. | ${{ github.token }} |
42
+
| --- | --- | --- |
43
+
| github-token | The GitHub token used to create an authenticated client | ${{ github.token }} |
0 commit comments