diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 5b7c94fbf9..70dfc889d9 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -9,7 +9,7 @@ jobs:
     steps:
       - uses: actions/checkout@v2
         with:
-          fetch-depth: 0
+          fetch-depth: 2
       - uses: tj-actions/changed-files@v12.2
         id: files
         with: