From da6dd253d5d163efb088df1e701e01b867e9f606 Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Sat, 10 Oct 2020 03:28:00 +0300 Subject: [PATCH] chore: use fetch-depth to fetch complete history Fixes the issue of publishing all commit since inception (see: goreleaser/goreleaser#990) --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fcb56ec..c8c4133 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,10 +22,8 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - # So GoReleaser can generate the changelog properly - - name: Unshallowify the repo clone - run: git fetch --prune --unshallow + with: + fetch-depth: 0 # https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027 - name: Print Go version and environment