Skip to content

Commit 5c2b069

Browse files
Add fetch depth
1 parent 0ac108f commit 5c2b069

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ jobs:
1717
if: github.event_name == 'pull_request'
1818
with:
1919
fetch-depth: 0
20-
ref: ${{ github.event.pull_request.head.ref }}
20+
ref: ${{ github.event.pull_request.head.sha }}
2121
- uses: actions/checkout@v4
2222
if: github.event_name == 'push'
23+
with:
24+
fetch-depth: 0
2325
- uses: actions/setup-python@v5
2426
with:
2527
python-version: "3.12"

0 commit comments

Comments
 (0)