From c77f7c44b1a702ae1b371d4a336f20c2f0aa2a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Andr=C3=A9n?= Date: Wed, 28 Feb 2024 15:29:07 +0100 Subject: [PATCH] better logic to pick up snapshot/local version --- .github/workflows/native-image-tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/native-image-tests.yml b/.github/workflows/native-image-tests.yml index 609e7296..cbbc7e15 100644 --- a/.github/workflows/native-image-tests.yml +++ b/.github/workflows/native-image-tests.yml @@ -35,9 +35,11 @@ jobs: jvm: temurin:1.11 - name: Gather version + # some cleanup of the sbt output to get the version sbt will use when publishing below run: |- - echo `git describe --tags | sed -e "s/v\(.*\)-\([0-9][0-9]*\).*/\\1+\\2-/"``git rev-parse HEAD | head -c8`-SNAPSHOT > ~/.version - cat ~/.version + sbt "akka-management/version" --batch --no-colors | tail -n 1 | cut -f 2 -d ' ' | tr -d '\n' > ~/.version + echo [$(cat ~/.version)] + # useful for debugging: hexdump -c ~/.version - name: Publish artifacts locally run: |-