Files
Alma/.scripts/versioning.sh
2022-12-19 20:13:39 +01:00

16 lines
301 B
Bash
Executable File

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