mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2025-12-02 00:32:40 +08:00
This commit is contained in:
parent
d490dcca0d
commit
2b44de199c
12
.github/workflows/pr-preview.yml
vendored
12
.github/workflows/pr-preview.yml
vendored
@ -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:
|
||||
${{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user