Skip to content

Commit

Permalink
purge cdn all
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonJunior committed May 3, 2024
1 parent bdf6cac commit f5bc3b8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f5bc3b8

Please sign in to comment.