mirror of
https://github.com/KaringX/karing-ruleset.git
synced 2025-06-12 04:24:13 +08:00
purge cdn all
This commit is contained in:
parent
bdf6cac07e
commit
f5bc3b819d
9
.github/workflows/run.yml
vendored
9
.github/workflows/run.yml
vendored
@ -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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user