瀏覽代碼

Use full git history in docs workflow for sitemap lastmod

yhirose 1 月之前
父節點
當前提交
8829fac98e
共有 1 個文件被更改,包括 3 次插入0 次删除
  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