From f445e3367123ad9c53e3144cf9502e653a085b0b Mon Sep 17 00:00:00 2001 From: Huang Huang Date: Wed, 6 Apr 2022 13:12:04 +0800 Subject: [PATCH] Upgrade goreleaser to v1.7.0 (#1143) --- .github/workflows/build.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 529c759..957a100 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -92,8 +92,11 @@ jobs: go-version: 1.16 - name: Checkout code uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Dry-run release snapshot uses: goreleaser/goreleaser-action@v2 with: - version: v0.169.0 + distribution: goreleaser + version: v1.7.0 args: release --snapshot --skip-publish --rm-dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c88fa8d..b935b42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,8 @@ jobs: go-version: 1.16 - name: Checkout code uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Run unit tests run: make tests - name: Setup Kubernetes cluster (KIND) @@ -44,7 +46,8 @@ jobs: - name: Release uses: goreleaser/goreleaser-action@v2 with: - version: v0.169.0 + distribution: goreleaser + version: v1.7.0 args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}