diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89a61ffb..5f74373c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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