chore: use fetch-depth to fetch complete history

Fixes the issue of publishing all commit since inception (see: goreleaser/goreleaser#990)
This commit is contained in:
Mohammed Al Sahaf
2020-10-10 03:28:00 +03:00
parent c1a919681b
commit da6dd253d5
+2 -4
View File
@@ -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