Add workaround to get tagged version in GitHub workflow script

This commit is contained in:
Joseph Henry
2021-05-18 23:22:07 -07:00
parent 4bad93c95b
commit a56ca93f54
2 changed files with 2 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ jobs:
run: sudo apt install default-jdk
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
run: echo "RELEASE_VERSION=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
- name: Build
run: PKG_VER_TAG=$RELEASE_VERSION ./build.sh host-jar "release"