From 980be168fc7601299936ce5182c85a639717e75b Mon Sep 17 00:00:00 2001 From: Felipe M Date: Tue, 10 Jan 2023 13:00:59 +0100 Subject: [PATCH] ci: fix goreleaser snapshots --- .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