feat: Added GitHub Actions workflow for clearing JSdelivr cache

This commit is contained in:
NianBroken
2024-05-07 13:27:23 +08:00 Unverified
parent e3a41b4914
commit b8484ac7f2
+8
View File
@@ -130,3 +130,11 @@ jobs:
git add . git add .
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: Purge JSdelivr Cache
run: |
for i in {1..50}; do
url="https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png"
response=$(curl -X PURGE $url -w "%{http_code}")
echo "Purging $url - Response: $response"
done