-
-
Save KyMidd/c1661550fe1305c55a8208b0b8ac04f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Echo out some spaces | |
echo "###################" | |
# Hold until rate limit is not hit | |
hold_until_rate_limit_success | |
# Increment counter | |
CURRENT_REPO_COUNT=$((CURRENT_REPO_COUNT + 1)) | |
# Find github repo ID with REST call | |
GH_REPO_ID=$(curl -sL \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer $GITHUB_TOKEN" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/$GH_ORG/$GH_REPO | jq -r '.id') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment