Skip to content

build: Add workflow to validate download links#1680

Merged
kroese merged 2 commits intomasterfrom
dev
Mar 23, 2026
Merged

build: Add workflow to validate download links#1680
kroese merged 2 commits intomasterfrom
dev

Conversation

@kroese
Copy link
Copy Markdown
Contributor

@kroese kroese commented Mar 23, 2026

No description provided.

@@ -0,0 +1,64 @@
name: Links
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[yamllint] reported by reviewdog 🐶
[warning] missing document start "---" (document-start)

@@ -0,0 +1,64 @@
name: Links

on:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[yamllint] reported by reviewdog 🐶
[warning] truthy value should be one of [false, true] (truthy)

declare -A seen
check() {
local url="$1" http
http=$(curl -sSL -o /dev/null -w "%{http_code}" --max-time 10 -I -- "$url" 2>&1) || http="000"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[yamllint] reported by reviewdog 🐶
[error] line too long (106 > 80 characters) (line-length)

local url="$1" http
http=$(curl -sSL -o /dev/null -w "%{http_code}" --max-time 10 -I -- "$url" 2>&1) || http="000"
[[ "$http" == 2* ]] && return 0
http=$(curl -sSL -o /dev/null -w "%{http_code}" --max-time 10 -r "0-0" -- "$url" 2>&1) || http="000"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[yamllint] reported by reviewdog 🐶
[error] line too long (112 > 80 characters) (line-length)

[[ "$http" == 2* ]]
}
while IFS= read -r line; do
if [[ "$line" =~ ^[[:space:]]*local[[:space:]]+host=\"(https://[^\"]+)\" ]]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[yamllint] reported by reviewdog 🐶
[error] line too long (93 > 80 characters) (line-length)

@kroese kroese merged commit d8e51d8 into master Mar 23, 2026
2 checks passed
@kroese kroese deleted the dev branch March 23, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant