Get version from tag

This commit is contained in:
2022-12-19 19:15:44 +01:00
parent c1c11e9b4f
commit 218a290e10
4 changed files with 38 additions and 3 deletions

View File

@@ -1 +1,16 @@
printenv
printenv
if [ ${GITHUB_REF_TYPE} != "tag" ]; then
exit 1
fi
version="${GITHUB_REF:11}"
git_hash="${GITHUB_SHA}"
echo $git_hash
git_hash=`expr substr $git_hash 1 8`
echo $version
echo $git_hash
sed -i "s/0.0.0/$version/g;s/development/$git_hash/g" src/Alma/Alma.csproj
cat src/Alma/Alma.csproj