fix version in CI

This commit is contained in:
folex 2021-04-06 19:16:03 +03:00
parent 0de43b470e
commit 1ecd25096b

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 version' |& tail -n2 | head -n1)"
VERSION="$(sbt 'print backend-air/version' |& tail -n2 | head -n1)"
echo "SBT_VERSION=$VERSION" >> $GITHUB_ENV
echo "VERSION=$VERSION-${{ github.run_number }}" >> $GITHUB_ENV