From 6d4b2aff8cdd9292eb8453433d4659e96f53f598 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 28 Dec 2024 20:01:08 +0100 Subject: [PATCH] Fix checkout action arg `fetch-depth` (#18436) Signed-off-by: Glenn Jocher --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 36b197d6..9b335089 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,11 +36,11 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 with: - # Depth 0 required for publishing to capture full author history + # Fetch depth 0 required for publishing to capture full author history repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN }} ref: ${{ env.GITHUB_REF }} - depth: ${{ github.event_name == 'push' && 0 || 1 }} + fetch-depth: ${{ github.event_name == 'push' && 0 || 1 }} - name: Set up Python uses: actions/setup-python@v5 with: