diff --git a/.github/workflows/bin_update.yml b/.github/workflows/bin_update.yml index fe860cd..835fcc2 100644 --- a/.github/workflows/bin_update.yml +++ b/.github/workflows/bin_update.yml @@ -150,7 +150,12 @@ jobs: git branch -M update git remote add origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" git push -f origin update - + #刷新cdn缓存 + sleep 60 + find bin/dashboard bin/geodata -type f 2>/dev/null | while read -r file; do + curl -s "https://purge.jsdelivr.net/gh/juewuy/ShellClash@update/${file#bin/}" || true + done + curl -s https://purge.jsdelivr.net/gh/juewuy/ShellClash@update/bin/version || true - name: Cleanup Workflow uses: Mattraks/delete-workflow-runs@main with: diff --git a/.github/workflows/update_meta_core.yaml b/.github/workflows/update_meta_core.yaml index b7d271c..923897b 100644 --- a/.github/workflows/update_meta_core.yaml +++ b/.github/workflows/update_meta_core.yaml @@ -195,6 +195,12 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]" git add . && git commit -m "更新${crashcore}内核至${VERSION}" || exit 0 git push + #刷新cdn缓存 + sleep 60 + find "bin/${crashcore}" -type f | while read -r file; do + curl -s "https://purge.jsdelivr.net/gh/juewuy/ShellClash@update/${file#bin/}" || true + done + curl -s https://purge.jsdelivr.net/gh/juewuy/ShellClash@update/bin/version || true - name: Create Release and Upload Release Asset if: ${{ env.RELEASE != '' && env.PUSHDIR == '' }}