mirror of
https://github.com/KaringX/karing-ruleset.git
synced 2025-06-13 06:44:14 +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
|
- name: Purge jsdelivr CDN
|
||||||
run: |
|
run: |
|
||||||
cd sing-rule || exit 1
|
cd sing-rule || exit 1
|
||||||
for file in $(ls * */*); do
|
find . -type f \( -name "*.json" -o -name "*.srs" \) -printf "%P\n" | while read file; do
|
||||||
if [[ $file = *".json" || $file = *".srs" ]]; then
|
curl -i -Ls "https://purge.jsdelivr.net/gh/${{ github.repository }}@sing/${file}"
|
||||||
curl -i -Ls "https://purge.jsdelivr.net/gh/${{ github.repository }}@sing/${file}"
|
echo -e "\t${file} PURGE...\n"
|
||||||
fi
|
done
|
||||||
done
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user