From 9b1d166901209acd9189b8f47897c00d365cb022 Mon Sep 17 00:00:00 2001 From: zach593 Date: Mon, 14 Feb 2022 13:54:36 +0800 Subject: [PATCH] fix git version from ` version` Signed-off-by: zach593 --- .github/workflows/image.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 5a56385d2..842ddcc06 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -14,6 +14,11 @@ jobs: steps: - name: checkout code uses: actions/checkout@v2 + with: + # fetch-depth: + # 0 indicates all history for all branches and tags. + # for `git describe --tags` in Makefile. + fetch-depth: 0 - name: install Go uses: actions/setup-go@v2 with: