ci: gh-action fetch tags
[awesomized/libmemcached] / .github / workflows / cmake-build-ci.gen
index dd5f8c85e4a33ed995e1f2d747e35f66e2642cbc..d75cc66b741127385dfe5b9cbe45a997c34dfb74 100755 (executable)
@@ -260,10 +260,12 @@ name: cmake-build-ci
 on:
   push:
     paths:
+      - "contrib/**"
       - "include/**"
       - "src/**"
       - "test/**"
       - "CMake*"
+      - "CPack*"
       - ".github/workflows/cmake-build-ci*"
     branches-ignore:
       - gh-pages
@@ -361,6 +363,8 @@ jobs:
     continue-on-error: true
     steps:
       - uses: actions/checkout@v2
+      - name: Fetch tags
+        run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
 <?php steps(false); ?>
 
   # win build
@@ -375,6 +379,8 @@ jobs:
     continue-on-error: true
     steps:
       - uses: actions/checkout@v2
+      - name: Fetch tags
+        run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
       - uses: msys2/setup-msys2@v2
         with:
           release: false
@@ -414,4 +420,6 @@ jobs:
       CC_VER: ${{ matrix.cc_ver }}
     steps:
       - uses: actions/checkout@v2
+      - name: Fetch tags
+        run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
 <?php steps(true); ?>