Skip to content

Commit

Permalink
build: Better way to pick up version in native-image tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren committed Feb 28, 2024
1 parent 1343094 commit 9dc9b1b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/native-image-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,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-persistence-r2dbc/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: |-
Expand Down

0 comments on commit 9dc9b1b

Please sign in to comment.