Update get-contributors.sh

ci: Fix incorrect token identification
This commit is contained in:
Shiming Zhang
2023-04-17 17:23:02 +08:00
committed by GitHub
parent c861819991
commit 39d5f757cb

View File

@@ -32,7 +32,7 @@ for contributor in "${contributors[@]}"; do
# lookup the commit info to get the login
contributor_logins+=("$(curl \
-sG \
${GITHUB_OAUTH_TOKEN:+-H="Authorization: token ${GITHUB_OAUTH_TOKEN:?}"} \
${GITHUB_OAUTH_TOKEN:+-H "Authorization: Bearer ${GITHUB_OAUTH_TOKEN:?}"} \
--data-urlencode "q=${contributor}" \
"https://api.github.com/repos/${ORG}/${REPO}/commits/${commit_for_contributor}" \
| jq -r .author.login