Skip to content

Commit

Permalink
[CI] Don't assume SNAPSHOT suffix in version of local artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Sep 20, 2023
1 parent a6b0e25 commit 9fdbdd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ jobs:
${MX_PATH}/mx --primary-suite-path sdk maven-deploy --suppress-javadoc 2>&1 | tee maven_deploy.log
rm -rf graalvm-maven-artefacts.tgz && tar -czvf graalvm-maven-artefacts.tgz -C ~ .m2/repository/org/graalvm
mv graalvm-maven-artefacts.tgz ${{ github.workspace }}
MAVEN_VERS=$(for token in $(head -n1 maven_deploy.log); do if echo $token | grep -q 'SNAPSHOT'; then echo $token; fi; done)
# Get version from first line of the log, which should look like "Installing sdk distributions for version 23.1.0.0"
MAVEN_VERS=$(awk 'NR==1 {print $6}' maven_deploy.log)
echo "GraalVM maven version is: ${MAVEN_VERS}"
echo ${MAVEN_VERS} > ${MANDREL_HOME}/.maven-version
rm -rf graalvm-version.tgz && tar -czvf graalvm-version.tgz -C $(dirname ${MANDREL_HOME}) $(basename ${MANDREL_HOME})/.maven-version
Expand Down

0 comments on commit 9fdbdd3

Please sign in to comment.