浏览代码

Add git fetch --tags.

scossu 9 月之前
父节点
当前提交
62371dcf02
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .github/workflows/push-test-image.yml

+ 2 - 0
.github/workflows/push-test-image.yml

@@ -20,7 +20,9 @@ jobs:
 
 
       - name: update version info
       - name: update version info
         run: >
         run: >
+          git fetch --tags
           git describe --tags >| VERSION
           git describe --tags >| VERSION
+          git rev-parse HEAD >> VERSION
 
 
       - name: Build the Docker image
       - name: Build the Docker image
         run: >
         run: >