chore: Fix tag.yml workflow to pull version from .workspace.package.version

This commit is contained in:
Gerald Pinder 2024-04-22 17:14:01 -04:00
parent 8d140724ae
commit 29efd47733

View file

@ -51,6 +51,6 @@ jobs:
- name: Run build
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
CARGO_PACKAGE_VERSION="v$(tomlq '.package.version' $PWD/Cargo.toml | sed 's/\"//g')"
CARGO_PACKAGE_VERSION="v$(tomlq '.workspace.package.version' $PWD/Cargo.toml | sed 's/\"//g')"
LATEST=$(test "$CARGO_PACKAGE_VERSION" = "$LATEST_TAG" && echo true || echo false)
earthly --push --ci -P +all --TAG=$LATEST_TAG --LATEST=$LATEST