File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed
Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -152,32 +152,16 @@ jobs:
152152 --gunzip \
153153 --file=-
154154
155- - name : Install cocogitto to get the next version number
155+ - name : Install git-cliff to generate changelog & next version number
156156 shell : bash
157157 run : |
158- cargo binstall \
159- --github-token ${{ secrets.GITHUB_TOKEN }} \
160- --no-confirm cocogitto \
161- --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" \
162- --bin-dir "{ target }/{ bin }{ binary-ext }" \
163- --target x86_64-unknown-linux-musl \
164- --pkg-fmt tgz \
165- --bin cog \
166- --strategies crate-meta-data
158+ cargo binstall --github-token ${{ secrets.GITHUB_TOKEN }} --no-confirm git-cliff
167159
168160 - name : Calculate next version
169161 shell : bash
170162 id : version
171163 run : |
172- version="$(cog bump --auto --dry-run || true)"
173-
174- if [[ "${version}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
175- echo "New version: ${version}"
176- else
177- version="v$(cog -v get-version)"
178-
179- echo "No version generated, defaulting to latest tag: ${version}"
180- fi
164+ version=$(git-cliff --bumped-version --unreleased --github-token ${{ secrets.GITHUB_TOKEN }})
181165
182166 # remove v
183167 version="${version//v/}"
You can’t perform that action at this time.
0 commit comments