Use GITHUB_WORKSPACE when present

This commit is contained in:
Uku Taht 2022-05-03 15:16:04 +03:00
parent 7e143fc8ee
commit f11f6844e8
1 changed files with 8 additions and 1 deletions

View File

@ -8,5 +8,12 @@ then
fi
if [ "$GITHUB_WORKSPACE" != "" ]
then
TARGET=$GITHUB_WORKSPACE/priv/static/version.json
else
TARGET=$(pwd)/priv/static/version.json
fi
echo "{\"version\": \"$VERSION\", \"commit\": \"$COMMIT\"}" > priv/static/version.json
echo $TARGET
echo "{\"version\": \"$VERSION\", \"commit\": \"$COMMIT\"}" > $TARGET