Skip to content

Commit

Permalink
Refactor index.ts to include @actions/artifact dependency
Browse files Browse the repository at this point in the history
Update usage.yaml workflow to include report and csv parameters
Update action.yml to include days, since, until, job-summary, and csv parameters
  • Loading branch information
austenstone committed Apr 23, 2024
1 parent a9ab9e5 commit 059d54d
Show file tree
Hide file tree
Showing 5 changed files with 2,521 additions and 134 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/usage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ jobs:
- uses: ./
with:
enterprise: octodemo
github-token: ${{ secrets.TOKEN }}
github-token: ${{ secrets.TOKEN }}
report: true
csv: true
16 changes: 15 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,28 @@ inputs:
required: false
organization:
description: The organization slug
default: ${{ github.repository_owner }}
required: false
team:
description: The team slug
required: false
report:
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 ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). Maximum value is 28 days ago.
required: false
until:
description: Show usage metrics until this date. This is a timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). Maximum value is 28 days ago.
required: false
job-summary:
description: Wither to generate a report
required: false
default: true
csv:
description: Wither to generate a CSV as a workflow artifact
required: false
default: false
outputs:
result:
description: The copilot usage as a JSON string
Expand Down
Loading

0 comments on commit 059d54d

Please sign in to comment.