ci: gh-action fetch tags
[m6w6/libmemcached] / .github / workflows / cmake-build-ci.gen
index 0545c2138b4ee52813c127b977c8e82b9b69bc34..d75cc66b741127385dfe5b9cbe45a997c34dfb74 100755 (executable)
@@ -363,8 +363,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/*
 <?php steps(false); ?>
 
   # win build
@@ -379,8 +379,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
@@ -420,6 +420,6 @@ 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/*
 <?php steps(true); ?>