Browse Source

fix build numbers by setting fetch-depth=0 (#3197)

Cebtenzzre 2 năm trước cách đây
mục cha
commit
69eb67e282
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      .github/workflows/build.yml

+ 6 - 0
.github/workflows/build.yml

@@ -281,6 +281,8 @@ jobs:
       - name: Clone
         id: checkout
         uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
 
       - name: Download OpenCL SDK
         id: get_opencl
@@ -397,6 +399,8 @@ jobs:
       - name: Clone
         id: checkout
         uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
 
       - uses: Jimver/cuda-toolkit@v0.2.11
         id: cuda-toolkit
@@ -485,6 +489,8 @@ jobs:
       - name: Clone
         id: checkout
         uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
 
       - name: Determine tag name
         id: tag