-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 948 Bytes
/
Copy pathdaily-history-today.yml
File metadata and controls
38 lines (31 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Daily History Today Build
on:
schedule:
- cron: "0 0,1,2 * * *" # 每天 00/01/02 点 UTC 触发,多次保障
workflow_dispatch: {}
permissions:
contents: write
jobs:
build-and-commit:
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.134.1'
extended: true
- name: Build site (sanity check)
run: hugo --config hugo.toml
- name: Commit daily rebuild trigger
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit --allow-empty -m "chore: daily history-today rebuild trigger"
git push