From 64e63782009b97cf48935f80da4caa2b9c3c701c Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 19 Jan 2020 21:52:29 +0100 Subject: [PATCH] Use checkout v2 (goreleaser/goreleaser#1298) --- .github/workflows/ci.yaml | 5 ++++- README.md | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4dbb496..403bc91 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,7 +26,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 + - + name: Unshallow + run: git fetch --prune --unshallow - name: Set up Go uses: actions/setup-go@v1 diff --git a/README.md b/README.md index 94fbb05..622bfef 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 + - + name: Unshallow + run: git fetch --prune --unshallow - name: Set up Go uses: actions/setup-go@v1 @@ -47,7 +50,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` -> If you want to run GoReleaser only on new tag, check [this comment](https://github.com/goreleaser/goreleaser-action/issues/61#issuecomment-569286582) +> **IMPORTANT**: note the `Unshallow` step. It is required for the changelog to work correctly. + +> If you want to run GoReleaser only on new tag, check [this comment](https://github.com/goreleaser/goreleaser-action/issues/61#issuecomment-569286582). ## Customizing