check-links: skip /releases/download/ URLs (chicken-and-egg with release builds)

This commit is contained in:
Felix Rieseberg
2026-04-12 21:25:17 -07:00
parent 60ee631575
commit 35c82c5d09

View File

@@ -11,6 +11,13 @@ async function main() {
let failed = false let failed = false
for (const link of links) { for (const link of links) {
// Release download URLs are chicken-and-egg: README is updated to point at
// the new version before the release build that creates those assets has
// run (and lint gates that build). Skip them.
if (/\/releases\/download\//.test(link)) {
console.log(`⏭️ ${link} (release asset, skipped)`)
continue
}
try { try {
const response = await fetch(link, { method: 'HEAD' }) const response = await fetch(link, { method: 'HEAD' })