From bef7fdf219c357b8bed0de802c1b6b97f73af955 Mon Sep 17 00:00:00 2001 From: Yisheng Cai Date: Thu, 3 Oct 2024 00:43:34 -0600 Subject: [PATCH] fix: GoReleaser lint issue (#127) --- .github/workflows/linter.yml | 13 ++++++++++++- .goreleaser.yaml | 6 +++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5672928..d2c9ef6 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -18,7 +18,7 @@ # name: Linter -on: [ pull_request ] +on: [pull_request] jobs: golangci: name: Run golangci-lint @@ -38,3 +38,14 @@ jobs: with: version: v1.46.2 + goreleaser: + name: Run GoReleaser check + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Run GoReleaser (check) + uses: goreleaser/goreleaser-action@v3 + with: + args: check diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a47a1fd..fbf0311 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,6 @@ +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json # Visit https://goreleaser.com for documentation on how to customize this behavior. +version: 2 project_name: terraform-provider-pulsar before: hooks: @@ -56,6 +58,4 @@ release: name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' # If you want to manually examine the release before its live, uncomment this line: # draft: true - prerelease: auto -changelog: - skip: true \ No newline at end of file + prerelease: auto \ No newline at end of file