We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85adf53 commit 8bfbbd5Copy full SHA for 8bfbbd5
1 file changed
.github/workflows/goreleaser-cd.yml
@@ -98,6 +98,11 @@ jobs:
98
path: dist/windows
99
key: windows-${{ env.sha_short }}
100
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
106
- name: GoReleaser (Release)
107
uses: goreleaser/goreleaser-action@v4
108
if: steps.cache.outputs.cache-hit != 'true' # do not run if cache hit
@@ -111,6 +116,7 @@ jobs:
111
116
GITLAB_CLIENT_SECRET: ${{ secrets.GITLAB_CLIENT_SECRET }}
112
117
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
113
118
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
119
+ GORELEASER_PREVIOUS_TAG: ${{ steps.release.outputs.prev }}
114
120
115
121
# Publish CLI / Cloud CLI container images
122
publish:
0 commit comments