mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-12-16 14:23:18 +08:00
Flush jsDelivr CDN cache (#50)
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -46,4 +46,11 @@ jobs:
|
|||||||
path: ip-lists
|
path: ip-lists
|
||||||
- run: ./upload.sh
|
- run: ./upload.sh
|
||||||
if: github.event_name == 'schedule' && github.ref == 'refs/heads/master'
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user