Skip to content

Commit 15d2561

Browse files
committed
ci: set git fetch-depth to 2 for proper diff comparison
Set fetch-depth to `2` in `actions/checkout` action configuration, to ensure sufficient git history for file change detection. The `fetch-depth` option default value is `1`, refer to https://github.com/actions/checkout/blob/v4.2.2/action.yml#L76
1 parent f6a7844 commit 15d2561

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
- name: Checkout
1414
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 2
1517

1618
- name: Install xn bucket
1719
shell: powershell

0 commit comments

Comments
 (0)