From bdf6cac07e2e393ad241bac8d74c44780a63530f Mon Sep 17 00:00:00 2001 From: ElonJunior Date: Fri, 3 May 2024 16:38:45 +0800 Subject: [PATCH] purge cdn --- .github/workflows/run.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 40a54ecf..49a98f2b 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -61,6 +61,8 @@ jobs: - name: Purge jsdelivr CDN run: | cd sing-rule || exit 1 - for file in $(ls); do - curl -i -Ls "https://purge.jsdelivr.net/gh/${{ github.repository }}@sing/${file}" + 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