homebrew: send token fallback notice to stderr

This commit is contained in:
2026-03-02 19:47:47 -05:00
parent 9a4f37df34
commit 37b0b540de

View File

@@ -46,7 +46,7 @@ api_with_fallback() {
fi fi
if [[ -n "${JOB_GH_TOKEN}" && "${JOB_GH_TOKEN}" != "${HOMEBREW_TAP_TOKEN}" ]]; then if [[ -n "${JOB_GH_TOKEN}" && "${JOB_GH_TOKEN}" != "${HOMEBREW_TAP_TOKEN}" ]]; then
echo "homebrew token auth failed; retrying with workflow token" echo "homebrew token auth failed; retrying with workflow token" >&2
if api "${JOB_GH_TOKEN}" "$@" 2>"$error_log"; then if api "${JOB_GH_TOKEN}" "$@" 2>"$error_log"; then
return 0 return 0
fi fi