From 6a5857216708d024c948a79fec63f4ef2ff0efcd Mon Sep 17 00:00:00 2001 From: zryfish Date: Thu, 8 Apr 2021 12:00:21 +0800 Subject: [PATCH] set fetch depth of checkout action to fetch all history and tags (#3699) Signed-off-by: Jeff --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 75bdd6769..3a641c47c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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)