From 68930a83d42dc8c9673bb13422133a725b6539e6 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Thu, 24 Aug 2023 14:07:41 +1000 Subject: [PATCH] chore: Update goreleaser configuration --- .github/workflows/goreleaser.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 3a73481..fad3a02 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v3xx` with: fetch-depth: 0 ref: ${{ github.ref }} @@ -53,9 +53,9 @@ jobs: run: | cp .goreleaser.yaml ../.goreleaser.yaml.new - # If RELEASE_SUFFIX includes a `-`, update the goreleaser config to not set + # If we have a RELEASE_SUFFIX, update the goreleaser config to not set # the release as the latest - if [[ "$RELEASE_SUFFIX" == *-* ]]; then + if [[ -n "$RELEASE_SUFFIX" ]]; then echo "release:" >> ../.goreleaser.yaml.new echo " prerelease: true" >> ../.goreleaser.yaml.new echo " make_latest: false" >> ../.goreleaser.yaml.new