Skip to content

Commit 4bf31fb

Browse files
authored
ci: Fetch all history for .GitInfo and .Lastmod (#1498)
Signed-off-by: rogerogers <rogers@rogerogers.com>
1 parent 82e4514 commit 4bf31fb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy-cn.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
- uses: actions/checkout@v4
1717
with:
1818
submodules: recursive
19-
fetch-depth: 1
19+
fetch-depth: 0
20+
ref: main
2021
- name: Setup Hugo
2122
uses: peaceiris/actions-hugo@v3
2223
with:

.github/workflows/gh-page.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
submodules: recursive
18-
fetch-depth: 1
18+
fetch-depth: 0
19+
ref: main
1920

2021
- name: Setup Hugo
2122
uses: peaceiris/actions-hugo@v3

0 commit comments

Comments
 (0)