From 1451361c9f89ede1d7f8ed15e7ae592ab45f47e0 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 5 Jun 2024 13:33:51 +0200 Subject: [PATCH] Use latest version of goreleaser action (#1477) ## Changes Same as https://github.com/databricks/terraform-provider-databricks/pull/3645. ## Tests n/a --- .github/workflows/release.yml | 4 ++-- .goreleaser.yaml | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8643ac35..bde5b377 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,9 +39,9 @@ jobs: - name: Run GoReleaser id: releaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: - version: latest + version: ~> v2 args: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d37876ed..3f0bdb2c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,6 +1,9 @@ +version: 2 + before: hooks: - - go mod tidy + - go mod download + builds: - env: - CGO_ENABLED=0 @@ -36,6 +39,7 @@ builds: - amd64 - arm64 binary: databricks + archives: - format: zip @@ -89,8 +93,10 @@ docker_manifests: checksum: name_template: 'databricks_cli_{{ .Version }}_SHA256SUMS' algorithm: sha256 + snapshot: name_template: '{{ incpatch .Version }}-dev+{{ .ShortCommit }}' + changelog: sort: asc filters: