Added GitHub Actions workflow for clearing JSdelivr cache

This commit is contained in:
NianBroken
2024-05-07 13:29:49 +08:00 Unverified
parent b8484ac7f2
commit bf41b6b6fa
+1 -3
View File
@@ -134,7 +134,5 @@ jobs:
- name: Purge JSdelivr Cache - name: Purge JSdelivr Cache
run: | run: |
for i in {1..50}; do for i in {1..50}; do
url="https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png" curl -I https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png
response=$(curl -X PURGE $url -w "%{http_code}")
echo "Purging $url - Response: $response"
done done