We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd0bca8 commit 69b8e03Copy full SHA for 69b8e03
1 file changed
.github/workflows/ci.yml
@@ -143,7 +143,11 @@ jobs:
143
sbt_output="$(mktemp)"
144
nix develop .#jdk${{ matrix.java }} --command \
145
sbt --error cli/pack publishM2 publishLocal 'print cli/version' | tee "$sbt_output"
146
- SCIP_JAVA_VERSION="$(awk 'NF { value = $0 } END { print value }' "$sbt_output")"
+ SCIP_JAVA_VERSION="$(
147
+ sed -E $'s/\x1B\[[0-9;?]*[ -/]*[@-~]//g' "$sbt_output" |
148
+ grep -E '^[0-9]+[.][0-9]+[.][0-9]+' |
149
+ tail -n 1
150
+ )"
151
test -n "$SCIP_JAVA_VERSION"
152
printf 'SCIP_JAVA_VERSION=%s\n' "$SCIP_JAVA_VERSION" >> "$GITHUB_ENV"
153
printf 'SCIP_JAVA_CLI=%s\n' "$PWD/scip-java/target/pack/bin/scip-java" >> "$GITHUB_ENV"
0 commit comments