fix: preserve skip-verification on API-unreachable path (#773)
Set is_empty="skipped" before breaking out of the retry loop when the API is unreachable, so the post-loop guard does not misfire with a false "still reports empty" failure. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
46970377bb
commit
c3719618a4
1 changed files with 1 additions and 0 deletions
|
|
@ -870,6 +870,7 @@ push_to_forge() {
|
||||||
-H "Authorization: token ${FORGE_TOKEN}" \
|
-H "Authorization: token ${FORGE_TOKEN}" \
|
||||||
"${forge_url}/api/v1/repos/${repo_slug}" 2>/dev/null) || repo_info=""
|
"${forge_url}/api/v1/repos/${repo_slug}" 2>/dev/null) || repo_info=""
|
||||||
if [ -z "$repo_info" ]; then
|
if [ -z "$repo_info" ]; then
|
||||||
|
is_empty="skipped"
|
||||||
break # API unreachable, skip verification
|
break # API unreachable, skip verification
|
||||||
fi
|
fi
|
||||||
is_empty=$(printf '%s' "$repo_info" | jq -r '.empty // "unknown"')
|
is_empty=$(printf '%s' "$repo_info" | jq -r '.empty // "unknown"')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue