diff --git a/.github/workflows/check-goreleaser.yaml b/.github/workflows/check-goreleaser.yaml new file mode 100644 index 00000000000..6f25384f229 --- /dev/null +++ b/.github/workflows/check-goreleaser.yaml @@ -0,0 +1,29 @@ +name: Check GoReleaser Config +on: + push: + branches: [main] + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 + with: + go-version: ~1.21.5 + - name: Check GoReleaser + uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 + with: + distribution: goreleaser-pro + version: latest + args: check --verbose cmd/builder/.goreleaser.yml + env: + GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/cmd/builder/.goreleaser.yml b/cmd/builder/.goreleaser.yml index 7cb52fa0ffa..a964ac6c6ee 100644 --- a/cmd/builder/.goreleaser.yml +++ b/cmd/builder/.goreleaser.yml @@ -36,4 +36,4 @@ checksum: snapshot: name_template: "{{ .Tag }}-next" changelog: - skip: true + disable: true