From 9344bbeb27fc9e7f8d8106b549a7d77c8b555c2d Mon Sep 17 00:00:00 2001 From: Felipe Martin <812088+fmartingr@users.noreply.github.com> Date: Tue, 10 Jan 2023 13:05:00 +0100 Subject: [PATCH] ci: fix goreleaser snapshots (#553) --- .github/workflows/_gorelease.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_gorelease.yml b/.github/workflows/_gorelease.yml index a65a33856..fc8565f44 100644 --- a/.github/workflows/_gorelease.yml +++ b/.github/workflows/_gorelease.yml @@ -13,6 +13,8 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} + run: echo "flags=--snapshot" >> $GITHUB_ENV - name: Setup Go uses: actions/setup-go@v3 with: @@ -22,7 +24,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --rm-dist ${{ env.flags }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v3