From a02e6bab1949421bf0f35a0e4124ab95f5c4cc50 Mon Sep 17 00:00:00 2001 From: anil-bd <210667061+anil-bd@users.noreply.github.com> Date: Tue, 24 Nov 2026 11:41:59 +0100 Subject: [PATCH] Live check: check this repo's file links in the checkout The weekly live check failed because github.com answered 503 for the README's three blob/main links (CONTRIBUTING.md, LICENSE, examples/sample_output.json) while every other link answered 200. GitHub throttles blob pages for Actions runners, and curl's --retry 3 waits only about 7 seconds. Those links point at files in this repo, so the step now checks that the file exists in the checkout: no network, and a renamed or deleted file still fails the step. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/live.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/live.yml b/.github/workflows/live.yml index d0aa861..594ab95 100644 --- a/.github/workflows/live.yml +++ b/.github/workflows/live.yml @@ -81,6 +81,10 @@ jobs: *zendesk.com/*) continue ;; # answers 403 to anything that is not a browser *mcp.brightdata.com/*) continue ;; # carries a placeholder token; nothing to check without a real one *api.brightdata.com/*) continue ;; # needs the token; the field-table step below calls it for real + *github.com/brightdata/amazon-scraper/blob/main/*) # GitHub throttles blob pages for runners (503); check the file in the checkout + f=${url#*/blob/main/}; f=${f%%#*} + if [ -e "$f" ]; then echo "200 $url (in the checkout)"; else echo "::error::no such file in the repo: $f"; failed=1; fi + continue ;; *github.com/brightdata/amazon-scraper*) [ "$public" = "200" ] || continue ;; # unreachable on a private fork esac code=$(curl -s -o /dev/null -L --retry 3 --max-time 30 -A "Mozilla/5.0" -w '%{http_code}' "$url" || echo 000)