From f5bc3b819df6c29158b23a4caa74029ec61e990b Mon Sep 17 00:00:00 2001 From: ElonJunior Date: Fri, 3 May 2024 18:46:22 +0800 Subject: [PATCH] purge cdn all --- .github/workflows/run.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 49a98f2b4..37c8f548a 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -61,8 +61,7 @@ jobs: - name: Purge jsdelivr CDN run: | cd sing-rule || exit 1 - for file in $(ls * */*); do - if [[ $file = *".json" || $file = *".srs" ]]; then - curl -i -Ls "https://purge.jsdelivr.net/gh/${{ github.repository }}@sing/${file}" - fi - done \ No newline at end of file + find . -type f \( -name "*.json" -o -name "*.srs" \) -printf "%P\n" | while read file; do + curl -i -Ls "https://purge.jsdelivr.net/gh/${{ github.repository }}@sing/${file}" + echo -e "\t${file} PURGE...\n" + done