From 25517ab2b908aeaa73fdeb2f2329f96f4ac787c6 Mon Sep 17 00:00:00 2001 From: NianBroken Date: Tue, 7 May 2024 17:47:52 +0800 Subject: [PATCH] Added GitHub Actions workflow for clearing JSdelivr cache --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a23050..d48babd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -131,10 +131,9 @@ jobs: git commit -m "Update from GitHub Actions" || true git push origin main --force - - name: Send GET requests + - name: Request Images run: | - for i in {1..50} - do - response=$(curl -X GET "https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png") + for i in {1..50}; do + response=$(curl -s -X GET https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png) echo "$response" done \ No newline at end of file