From 1284c0592f9f95adcac1be21e7de95e01fed7493 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Wed, 20 Sep 2023 10:19:21 -0400 Subject: [PATCH] Allow tj-actions/changed-files to fetch default of 50 (#42874) --- .github/workflows/content-lint-markdown.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/content-lint-markdown.yml b/.github/workflows/content-lint-markdown.yml index 1d4b1415d5..7a9c478841 100644 --- a/.github/workflows/content-lint-markdown.yml +++ b/.github/workflows/content-lint-markdown.yml @@ -19,8 +19,11 @@ jobs: - name: Check out repo uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 with: - # Needed to detect changed files - fetch-depth: 2 + # Picking this number is a "best guess". If we make it too large, + # the checkout will take potentially unnecessariily long. + # This reduces the chance that tj-actions/changed-files has to + # fetch deeper history. But if it needs to, it will. + fetch-depth: 10 - name: Set up Node and dependencies uses: ./.github/actions/node-npm-setup @@ -29,7 +32,6 @@ jobs: id: changed-files uses: tj-actions/changed-files@246636f5fa148b5ad8e65ca4c57b18af3123e5f6 # v39.0.1 with: - fetch_depth: 2 files: | content/** data/**