Skip to content

Commit afe7c96

Browse files
committed
ci: Change current version retrieval
1 parent 8f89866 commit afe7c96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Compute prerelease version
3434
id: version
3535
run: |
36-
BASE_VERSION=$(cargo pkgid -p libtortillas | sed 's/.*#//')
36+
BASE_VERSION=$(cargo metadata --format-version=1 --no-deps | jq ".packages[1].version")
3737
PRERELEASE_VERSION="${BASE_VERSION}-alpha.${GITHUB_SHA::7}"
3838
echo "prerelease_version=$PRERELEASE_VERSION" >> $GITHUB_OUTPUT
3939

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)