From dec278910e4f44cea3fb5135c4f0261a29520867 Mon Sep 17 00:00:00 2001 From: jtbx Date: Thu, 1 Feb 2024 20:15:50 +0100 Subject: [PATCH] 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. --- .forgejo/workflows/deploy.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 4e03ca1..c317265 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -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'