mirror of
https://github.com/godotengine/awesome-godot.git
synced 2026-02-24 22:33:39 +03:00
Add special check for npm modules
This commit is contained in:
10
.github/workflows/check-urls.yml
vendored
10
.github/workflows/check-urls.yml
vendored
@@ -20,3 +20,13 @@ jobs:
|
||||
|
||||
- name: Fail if there were link errors
|
||||
run: exit ${{ steps.lc.outputs.exit_code }}
|
||||
|
||||
- name: Check npm packages manually
|
||||
run: |
|
||||
grep -oE 'https://www\.npmjs\.com/package/[a-zA-Z0-9@/._-]+' README.md | sort -u | while read -r url; do \
|
||||
registry=$(echo "$url" | sed 's#https://www\.npmjs\.com/package/#https://registry.npmjs.org/#g')
|
||||
status=$(curl -w "%{http_code}" -o /dev/null -s -L "$registry"); echo -n "Checking $url... "
|
||||
if [[ "$status" -eq 404 ]]; then
|
||||
echo "Status code: $status"; exit 1; \
|
||||
fi; echo "Found!"
|
||||
done
|
||||
|
||||
@@ -30,3 +30,6 @@ tcp:\/\/.*
|
||||
|
||||
# Class reference mentions `example.com/index.php` in an example, which is 404.
|
||||
.*example\.com.*
|
||||
|
||||
# Ignore npm packages as their Cloudflare config blocks normal CI pinging
|
||||
https://www\.npmjs\.com/package/[a-zA-Z0-9@/._-]+
|
||||
|
||||
Reference in New Issue
Block a user