支持刷新缓存 (#331)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
neveler 2025-11-10 19:18:39 +08:00 committed by GitHub
parent d490dcca0d
commit 2b44de199c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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:
${{