From bf41b6b6fa07a2c1c2af987f60c0ebb5fc741a97 Mon Sep 17 00:00:00 2001 From: NianBroken Date: Tue, 7 May 2024 13:29:49 +0800 Subject: [PATCH] Added GitHub Actions workflow for clearing JSdelivr cache --- .github/workflows/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a70e93..201ab21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -134,7 +134,5 @@ jobs: - 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" + curl -I https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png done \ No newline at end of file