From 44fcded2668f60c8ca33cb262dc73b5112c0380d Mon Sep 17 00:00:00 2001 From: Tom <73077675+tmzane@users.noreply.github.com> Date: Mon, 8 May 2023 16:45:27 +0300 Subject: [PATCH] ci(release): explicitly declare `HOMEBREW_TAP_TOKEN` --- .github/workflows/release.yml | 3 ++- .goreleaser.yml | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2edab0..39b06d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,8 @@ on: jobs: release: uses: go-simpler/.github/.github/workflows/release.yml@main - secrets: inherit with: version: ${{ github.event_name == 'push' && github.ref_name || inputs.version }} use-goreleaser: true + secrets: + HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 8748067..2590808 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -13,9 +13,7 @@ builds: - windows_amd64 archives: - - replacements: - darwin: macOS - format_overrides: + - format_overrides: - goos: windows format: zip @@ -23,7 +21,7 @@ brews: - tap: owner: tmzane name: homebrew-tap - token: '{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}' + token: '{{ .Env.HOMEBREW_TAP_TOKEN }}' homepage: https://github.com/tmzane/musttag description: A Go linter that enforces field tags in (un)marshaled structs license: MPL-2.0