Subtask WIFI-913

This commit is contained in:
AkshayJagadish-ne
2020-10-07 13:24:21 -04:00
committed by GitHub
parent 64096d040d
commit 6dbaddc021

View File

@@ -48,13 +48,15 @@ jobs:
run: |
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest
TIMESTAMP=$(date +'%Y-%m-%d')
echo date=$TIMESTAMP > app/commit.properties
echo commitId=$GITHUB_SHA >> app/commit.properties
echo projectVersion=$VERSION>> app/commit.properties