From 79ea0e8e78cd574451a7a78abdab0b9143ce67d2 Mon Sep 17 00:00:00 2001 From: NianBroken Date: Tue, 7 May 2024 18:07:04 +0800 Subject: [PATCH] Add the ability to get connection information and clean JSdelivr cache. --- .github/workflows/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ff34a5f..d56aab0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -131,8 +131,16 @@ jobs: git commit -m "Update from GitHub Actions" || true git push origin main --force - - name: Request Images + - name: Get Connection 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 url="https://purge.jsdelivr.net/gh/NianBroken/ZFCheckScores/img/$i.png" echo "Accessing: $url"