Flush jsDelivr CDN cache (#50)

This commit is contained in:
yk271
2025-11-07 03:16:08 +08:00
committed by GitHub
parent 8186678bfa
commit c1a7a87023

View File

@@ -46,4 +46,11 @@ jobs:
path: ip-lists
- run: ./upload.sh
if: github.event_name == 'schedule' && github.ref == 'refs/heads/master'
- name: Refresh CDN cache
if: github.event_name == 'schedule' && github.ref == 'refs/heads/master'
run: |
cd ip-lists
for file in *; do
curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@ip-lists/${file}"
done