更新书源 2392 : Linpx、FN 同步 JSLib #759
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Purge Caches | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'ver*.*.*' | |
| paths: | |
| - "**.json" | |
| release: | |
| types: [created, edited, published] | |
| workflow_dispatch: | |
| jobs: | |
| purgeCache1: | |
| name: Purge Pixiv Cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Purge Jsdelivr Cache | |
| run: | | |
| result=$(curl -s https://purge.jsdelivr.net/gh/windyhusky/PixivSource@main/pixiv.json) | |
| if echo $result |grep -q 'finished'; then | |
| echo "Pixiv 书源 jsdelivr 缓存更新成功" | |
| else | |
| echo $result | |
| fi | |
| purgeCache2: | |
| name: Purge Linpx Cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Purge Jsdelivr Cache | |
| run: | | |
| result=$(curl -s https://purge.jsdelivr.net/gh/windyhusky/PixivSource@main/linpx.json) | |
| if echo $result |grep -q 'finished'; then | |
| echo "Linpx 书源 jsdelivr 缓存更新成功" | |
| else | |
| echo $result | |
| fi | |
| purgeCache3: | |
| name: Purge BTSRK Cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Purge Jsdelivr Cache | |
| run: | | |
| result=$(curl -s https://purge.jsdelivr.net/gh/windyhusky/PixivSource@main/btsrk.json) | |
| if echo $result |grep -q 'finished'; then | |
| echo "BTSRK 订阅源 jsdelivr 缓存更新成功" | |
| else | |
| echo $result | |
| fi | |
| purgeCache4: | |
| name: Purge Books Cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Purge Jsdelivr Cache | |
| run: | | |
| result=$(curl -s https://purge.jsdelivr.net/gh/windyhusky/PixivSource@main/books.json) | |
| if echo $result |grep -q 'finished'; then | |
| echo "Books 订阅源 jsdelivr 缓存更新成功" | |
| else | |
| echo $result | |
| fi | |
| purgeCache5: | |
| name: Purge Import Cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Purge Jsdelivr Cache | |
| run: | | |
| result=$(curl -s https://purge.jsdelivr.net/gh/windyhusky/PixivSource@main/import.json) | |
| if echo $result |grep -q 'finished'; then | |
| echo "Import 订阅源 jsdelivr 缓存更新成功" | |
| else | |
| echo $result | |
| fi | |
| purgeCache6: | |
| name: Purge Normal Cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Purge BTSRK Jsdelivr Cache | |
| run: | | |
| result=$(curl -s https://purge.jsdelivr.net/gh/windyhusky/PixivSource@main/normal.json) | |
| if echo $result |grep -q 'finished'; then | |
| echo "Normal 书源 jsdelivr 缓存更新成功" | |
| else | |
| echo $result | |
| fi |