Skip to content

Commit 1284c05

Browse files
author
Peter Bengtsson
authored
Allow tj-actions/changed-files to fetch default of 50 (#42874)
1 parent 7b9b78d commit 1284c05

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/content-lint-markdown.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ jobs:
1919
- name: Check out repo
2020
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
2121
with:
22-
# Needed to detect changed files
23-
fetch-depth: 2
22+
# Picking this number is a "best guess". If we make it too large,
23+
# the checkout will take potentially unnecessariily long.
24+
# This reduces the chance that tj-actions/changed-files has to
25+
# fetch deeper history. But if it needs to, it will.
26+
fetch-depth: 10
2427

2528
- name: Set up Node and dependencies
2629
uses: ./.github/actions/node-npm-setup
@@ -29,7 +32,6 @@ jobs:
2932
id: changed-files
3033
uses: tj-actions/changed-files@246636f5fa148b5ad8e65ca4c57b18af3123e5f6 # v39.0.1
3134
with:
32-
fetch_depth: 2
3335
files: |
3436
content/**
3537
data/**

0 commit comments

Comments
 (0)