From 063dfaa1aa6c8f0466c708efadc4b39ec14ce427 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Tue, 10 Jun 2025 15:26:21 +0800 Subject: [PATCH] Remove jsDelivr CDN cache purge step The step to purge jsDelivr CDN cache for the assets branch has been removed from the GitHub Actions workflow. This change simplifies the workflow by eliminating unnecessary cache management. --- .github/workflows/run.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 61cb32ef5..7dae77392 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -209,28 +209,6 @@ jobs: git push origin assets --force fi - - name: Purge jsDelivr CDN cache - run: | - echo "Purging jsDelivr CDN cache for assets branch..." - # Change to directory with PNG files - cd favicons - - # Count files for progress tracking - total_files=$(find . -name "*.png" | wc -l) - echo "Purging cache for $total_files files" - - count=0 - for file in $(find . -name "*.png" -type f -printf "%f\n"); do - count=$((count + 1)) - if [ $((count % 100)) -eq 0 ]; then - echo "Progress: Purged $count/$total_files files" - fi - - curl -s -o /dev/null -w "%{http_code}" "https://purge.jsdelivr.net/gh/${{ github.repository }}@assets/${file}" - done - - echo "jsDelivr CDN cache purge completed for $count files" - - name: Install tzst run: | echo "Installing tzst..."