Skip to content

Instantly share code, notes, and snippets.

@KyMidd

KyMidd/asdf.sh Secret

Created July 27, 2024 03:23
Show Gist options
  • Save KyMidd/c1661550fe1305c55a8208b0b8ac04f6 to your computer and use it in GitHub Desktop.
Save KyMidd/c1661550fe1305c55a8208b0b8ac04f6 to your computer and use it in GitHub Desktop.
# 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