Fixup scala 2.13 check (#8881)

* Fixup scala 2.13 check

Somehow I managed to misread the helpcheck and get confused by my
experiments and thought semver produces an exit code of 1,0,-1 but
actually it writes that to stdout.

changelog_begin
changelog_end

* Update ci/build.yml

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>

* Update ci/build.yml

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>

Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
This commit is contained in:
Moritz Kiefer 2021-02-17 15:23:58 +01:00 committed by GitHub
parent ba6ba9019f
commit 5843b193fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,10 +384,10 @@ jobs:
setvar is_release false
fi
ret=0
# This is the last snapshot that does not support Scala 2.13.
semver compare "$RELEASE_TAG" "1.11.0-snapshot.20210212.6300.0.ad161d7f" || ret=$?
if [[ $ret -eq 1 || "$RELEASE_TAG" == "0.0.0" ]]; then
CMP="$(semver compare "$RELEASE_TAG" '1.11.0-snapshot.20210212.6300.0.ad161d7f')"
if [[ $CMP == '1' || "$RELEASE_TAG" == '0.0.0' ]]; then
setvar scala_2_13 true
else
setvar scala_2_13 false
@ -546,4 +546,3 @@ jobs:
# value or empty string, but not $(Azure.Variable.Name)).
PR_NUM: $(pr.num)
PR_BRANCH: $(pr.branch)