~增加更新后同步刷新cdn缓存的操作

This commit is contained in:
juewuy
2025-12-14 09:14:21 +08:00
parent aae37b21cb
commit 2247dbe58a

View File

@@ -220,6 +220,12 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com" && git config --global user.name "github-actions[bot]" 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 add . && git commit -m "更新${crashcore}内核至${VERSION}" || exit 0
git push 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 - name: Create Release and Upload Release Asset
if: ${{ env.RELEASE != '' && env.PUSHDIR == '' }} if: ${{ env.RELEASE != '' && env.PUSHDIR == '' }}