Skip to content

Commit

Permalink
better logic to pick up snapshot/local version
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren committed Feb 28, 2024
1 parent 04bf0ae commit c77f7c4
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 @@ -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: |-
Expand Down

0 comments on commit c77f7c4

Please sign in to comment.