ci: gh-actions fetch-depth=1000 for git describe
[awesomized/libmemcached] / .github / workflows / cmake-build-ci.yml
index e51e972078145882efeabad44432dc0f4629431c..c160ea3033d31bd759ecbbcb11cca15fa3cbac45 100644 (file)
@@ -3,10 +3,12 @@ name: cmake-build-ci
 on:
   push:
     paths:
+      - "contrib/**"
       - "include/**"
       - "src/**"
       - "test/**"
       - "CMake*"
+      - "CPack*"
       - ".github/workflows/cmake-build-ci*"
     branches-ignore:
       - gh-pages
@@ -418,6 +420,8 @@ jobs:
     continue-on-error: true
     steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 1000
       - name: Install dependencies (Linux)
         if: runner.os == 'Linux'
         run: |
@@ -508,6 +512,8 @@ jobs:
     continue-on-error: true
     steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 1000
       - uses: msys2/setup-msys2@v2
         with:
           release: false
@@ -547,6 +553,8 @@ jobs:
       CC_VER: ${{ matrix.cc_ver }}
     steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 1000
       - name: Prepare environment (for new gnu on ubuntu-20.04)
         if: (env.OS_VER=='ubuntu-20.04') && (env.CC_VND=='gnu') && (env.CC_VER=='new')
         run: |