mirror of
https://gitee.com/huanghongxun/HMCL-docs.git
synced 2025-12-02 01:42: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
|
name: PR Preview
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 0 */6 * *
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
pull_request_target:
|
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 }}
|
GITHUB_PR_NUMBER: ${{ github.event_name == 'issue_comment' && github.event.issue.number || github.event.pull_request.number }}
|
||||||
JEKYLL_ENV: production
|
JEKYLL_ENV: production
|
||||||
jobs:
|
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:
|
preview-remove:
|
||||||
if:
|
if:
|
||||||
${{
|
${{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user