Added GitHub Actions workflow for clearing JSdelivr cache

This commit is contained in:
NianBroken
2024-05-07 17:37:04 +08:00 Unverified
parent ce089383b3
commit 40ddaa3db2
+5 -4
View File
@@ -131,9 +131,10 @@ jobs:
git commit -m "Update from GitHub Actions" || true git commit -m "Update from GitHub Actions" || true
git push origin main --force git push origin main --force
- name: Send Requests - name: Send GET requests
run: | run: |
for i in {1..50}; do for i in {1..50}
response=$(curl -X GET -s -o /dev/null -w "%{http_code}" https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png) do
echo "Response for img/$i.png: $response" response=$(curl -X GET "https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png")
echo "$response"
done done