Add the ability to get connection information and clean JSdelivr cache.

This commit is contained in:
NianBroken
2024-05-07 18:07:04 +08:00 Unverified
parent d9ddefd7e8
commit 79ea0e8e78
+9 -1
View File
@@ -131,8 +131,16 @@ jobs:
git commit -m "Update from GitHub Actions" || true git commit -m "Update from GitHub Actions" || true
git push origin main --force git push origin main --force
- name: Request Images - name: Get Connection
run: | run: |
# 获取连接信息
url="https://ifconfig.me/all"
response=$(curl -s -X GET "$url")
echo "$response"
- name: Purge JSdelivr Cache
run: |
# 清理JSdelivr缓存
for i in {1..50}; do for i in {1..50}; do
url="https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png" url="https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png"
echo "Accessing: $url" echo "Accessing: $url"