瀏覽代碼

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
         run: >
+          git fetch --tags
           git describe --tags >| VERSION
+          git rev-parse HEAD >> VERSION
 
       - name: Build the Docker image
         run: >