CI: Fix lastmod property of articles
All checks were successful
/ build (pull_request) Successful in 39s
/ cleanup-staging (pull_request) Successful in 2s
/ build (push) Successful in 13s

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:
jtbx 2024-02-01 20:15:50 +01:00
parent 8c2684abef
commit dec278910e

View file

@ -30,6 +30,8 @@ jobs:
apk add rsync openssh
- uses: actions/checkout@v4
with:
fetch-depth: 0 # pull full history for page lastmod by git commit date
- name: Patch baseURL (staging only)
if: github.ref_name != 'main'