diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 49c0d6b..b852103 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,8 +22,10 @@ jobs: with: go-version: 1.21.5 - - name: Run GoReleaser - if: github.event_name == 'workflow_dispatch' - run: goreleaser release --rm-dist --release-notes "Release version ${{ github.event.inputs.version }}" + - name: Install GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist --release-notes "Release version ${{ github.event.inputs.version }}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}