Added GitHub Actions workflow for clearing JSdelivr cache

This commit is contained in:
NianBroken
2024-05-07 17:47:52 +08:00 Unverified
parent 40ddaa3db2
commit 25517ab2b9
+3 -4
View File
@@ -131,10 +131,9 @@ 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 GET requests - name: Request Images
run: | run: |
for i in {1..50} for i in {1..50}; do
do response=$(curl -s -X GET https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png)
response=$(curl -X GET "https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png")
echo "$response" echo "$response"
done done