diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 40a54ecff..49a98f2b4 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