-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
30 lines (27 loc) · 949 Bytes
/
action.yml
File metadata and controls
30 lines (27 loc) · 949 Bytes
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
name: GitHub API Usage Tracker
description: Track GitHub API rate-limit usage for a job (core/graphql/search)
author: Really Him
branding:
icon: activity
color: blue
inputs:
token:
description: Token to query rate_limit (defaults to github.token)
required: false
default: ${{ github.token }}
buckets:
description: Comma-separated rate-limit buckets to track (core,search,graphql,code_search,integration_manifest,dependency_snapshots,dependency_sbom,code_scanning_upload,actions_runner_registration,source_import)
required: false
default: core,search,graphql
output_path:
description: Path to write JSON report; set empty to skip
required: false
default: github_api_usage.json
outputs:
usage:
description: JSON string with total, duration_ms, and buckets_data (per-bucket used/remaining)
runs:
using: node20
pre: dist/pre/index.js
main: dist/checkpoint/index.js
post: dist/post/index.js