fix: Improper syntax for test in tag workflow

This commit is contained in:
Gerald Pinder 2024-01-27 09:45:21 -05:00
parent c4bf52108e
commit 67f2d34058

View file

@ -46,5 +46,5 @@ jobs:
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')"
LATEST=$(test $CARGO_PACKAGE_VERSION == $LATEST_TAG && echo true || echo false)
LATEST=$(test "$CARGO_PACKAGE_VERSION" = "$LATEST_TAG" && echo true || echo false)
earthly --push --ci -P +all --TAG=$LATEST_TAG --LATEST=$LATEST