From 2b44de199cba43d0eccab5465eea7588394ca60f Mon Sep 17 00:00:00 2001 From: neveler <55753029+neveler@users.noreply.github.com> Date: Mon, 10 Nov 2025 19:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=88=B7=E6=96=B0=E7=BC=93?= =?UTF-8?q?=E5=AD=98=20(#331)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-preview.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 15de278..84de423 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -1,5 +1,7 @@ name: PR Preview on: + schedule: + - cron: 0 0 */6 * * issue_comment: types: [created] pull_request_target: @@ -11,6 +13,16 @@ env: GITHUB_PR_NUMBER: ${{ github.event_name == 'issue_comment' && github.event.issue.number || github.event.pull_request.number }} JEKYLL_ENV: production jobs: + cache-refresh: + if: ${{ !github.event.repository.fork && github.event_name == 'schedule' && github.event.schedule == '0 0 */6 * *' }} + runs-on: ubuntu-latest + steps: + - name: Cache Refresh + uses: actions/cache/restore@v4 + with: + key: pages-${{ github.run_id }} + path: /home/runner/gh-pages + restore-keys: pages- preview-remove: if: ${{