use cli/version in CI

This commit is contained in:
folex 2021-04-06 19:29:02 +03:00
parent 1ecd25096b
commit 6540550f08

View File

@ -28,7 +28,7 @@ jobs:
- name: Get project version
# In CI sbt appends a new line after its output, so we need `tail -n2 | head -n1`
run: |
VERSION="$(sbt 'print backend-air/version' |& tail -n2 | head -n1)"
VERSION="$(sbt 'print cli/version' |& tail -n2 | head -n1)"
echo "SBT_VERSION=$VERSION" >> $GITHUB_ENV
echo "VERSION=$VERSION-${{ github.run_number }}" >> $GITHUB_ENV