ci: gh-action fetch tags
authorMichael Wallner <mike@php.net>
Thu, 17 Dec 2020 11:49:30 +0000 (12:49 +0100)
committerMichael Wallner <mike@php.net>
Thu, 17 Dec 2020 11:49:30 +0000 (12:49 +0100)
.github/workflows/cmake-build-ci.gen
.github/workflows/cmake-build-ci.yml

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); ?>
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: |