Kaynağa Gözat

Use full git history in docs workflow for sitemap lastmod

yhirose 1 ay önce
ebeveyn
işleme
8829fac98e
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      .github/workflows/docs.yml

+ 3 - 0
.github/workflows/docs.yml

@@ -20,6 +20,9 @@ jobs:
       url: ${{ steps.deployment.outputs.page_url }}
     steps:
       - uses: actions/checkout@v4
+        with:
+          # Full history so sitemap <lastmod> reflects each page's real last commit date
+          fetch-depth: 0
       - uses: dtolnay/rust-toolchain@stable
       - uses: Swatinem/rust-cache@v2
       - name: Install docs-gen