mirror of
https://github.com/felixrieseberg/windows95.git
synced 2026-05-09 00:24:09 +00:00
check-links: skip /releases/download/ URLs (chicken-and-egg with release builds)
This commit is contained in:
@@ -11,6 +11,13 @@ async function main() {
|
||||
let failed = false
|
||||
|
||||
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 {
|
||||
const response = await fetch(link, { method: 'HEAD' })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user