chore: Fix tag.yml workflow to pull version from .workspace.package.version
This commit is contained in:
parent
8d140724ae
commit
29efd47733
1 changed files with 1 additions and 1 deletions
2
.github/workflows/tag.yml
vendored
2
.github/workflows/tag.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue