set fetch depth of checkout action to fetch all history and tags (#3699)

Signed-off-by: Jeff <jeffzhang@yunify.com>
This commit is contained in:
zryfish
2021-04-08 12:00:21 +08:00
committed by GitHub
parent 4fc4e48d35
commit 6a58572167

View File

@@ -27,6 +27,8 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check pr is properly formatted
run: diff -u <(echo -n) <(gofmt -d ./pkg ./cmd ./tools ./test)