ci: gh-action fetch tags
[m6w6/libmemcached] / .github / workflows / cmake-build-ci.yml
index c160ea3033d31bd759ecbbcb11cca15fa3cbac45..028d6cf9251f77ca84c70837b35e1f8f0c57269f 100644 (file)
@@ -420,8 +420,8 @@ jobs:
     continue-on-error: true
     steps:
       - uses: actions/checkout@v2
-        with:
-          fetch-depth: 1000
+      - name: Fetch tags
+        run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
       - name: Install dependencies (Linux)
         if: runner.os == 'Linux'
         run: |
@@ -512,8 +512,8 @@ jobs:
     continue-on-error: true
     steps:
       - uses: actions/checkout@v2
-        with:
-          fetch-depth: 1000
+      - name: Fetch tags
+        run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
       - uses: msys2/setup-msys2@v2
         with:
           release: false
@@ -553,8 +553,8 @@ jobs:
       CC_VER: ${{ matrix.cc_ver }}
     steps:
       - uses: actions/checkout@v2
-        with:
-          fetch-depth: 1000
+      - name: Fetch tags
+        run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
       - 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: |