diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 7baba9bf0d8ef068047f5e4d22e9c3e12cceb330..defa0af81fe0cdfeffffb1cae7b7494bcfe1e5ce 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -12,6 +12,10 @@ jobs:
           - "2.7"
 
     steps:
+    - uses: actions/checkout@v2
+      with:
+        fetch-depth: "0"
+
       # Get tags not fetched by the checkout action, needed for auto-versioning.
     - name: "Finish checkout"
       run: |