Skip to content

Commit 8bfbbd5

Browse files
potentially force goreleaser to behave
1 parent 85adf53 commit 8bfbbd5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/goreleaser-cd.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ jobs:
9898
path: dist/windows
9999
key: windows-${{ env.sha_short }}
100100
enableCrossOsArchive: true
101+
- name: Get Previous Tag
102+
id: prev
103+
uses: WyriHaximus/github-action-get-previous-tag@v1
104+
env:
105+
INPUT_PREFIX: v
101106
- name: GoReleaser (Release)
102107
uses: goreleaser/goreleaser-action@v4
103108
if: steps.cache.outputs.cache-hit != 'true' # do not run if cache hit
@@ -111,6 +116,7 @@ jobs:
111116
GITLAB_CLIENT_SECRET: ${{ secrets.GITLAB_CLIENT_SECRET }}
112117
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
113118
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
119+
GORELEASER_PREVIOUS_TAG: ${{ steps.release.outputs.prev }}
114120

115121
# Publish CLI / Cloud CLI container images
116122
publish:

0 commit comments

Comments
 (0)