CI: Fix lastmod property of articles
We use the git commit to determine the lastmod date, but the checkout action uses a shallow clone by default.
This commit is contained in:
parent
8c2684abef
commit
dec278910e
|
@ -30,6 +30,8 @@ jobs:
|
||||||
apk add rsync openssh
|
apk add rsync openssh
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # pull full history for page lastmod by git commit date
|
||||||
|
|
||||||
- name: Patch baseURL (staging only)
|
- name: Patch baseURL (staging only)
|
||||||
if: github.ref_name != 'main'
|
if: github.ref_name != 'main'
|
||||||
|
|
Loading…
Reference in a new issue