Is there a GitHub API I can use to retrieve the number of days X in
GitHub Actions
Included minutes quota resets in X days
which you can find on the https://github.com/settings/billing page?
Performing the following API call
# GITHUB_TOKEN with "Update ALL user data" permission
curl \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/users/$GITHUB_USER/settings/billing/actions
I get all info except for the billing period expiration date:
{
"total_minutes_used": 228,
"total_paid_minutes_used": 0,
"included_minutes": 2000,
"minutes_used_breakdown": {
"UBUNTU": 228
}
}
Many thanks.
