fix git version from `<bin> version`

Signed-off-by: zach593 <zach_li@outlook.com>
This commit is contained in:
zach593 2022-02-14 13:54:36 +08:00
parent d898f8469c
commit 9b1d166901
1 changed files with 5 additions and 0 deletions

View File

@ -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: