fix: correctly get MS_COMMIT [skip ci]

This commit is contained in:
Baptiste Augrain 2022-08-30 10:53:02 +02:00
parent ba9a6a1319
commit f212b71f2a

View file

@ -40,6 +40,13 @@ else
echo "Bad RELEASE_VERSION: ${RELEASE_VERSION}" echo "Bad RELEASE_VERSION: ${RELEASE_VERSION}"
exit 1 exit 1
fi fi
if [[ "${MS_TAG}" == "$(jq -r '.tag' insider.json)" ]]; then
export MS_COMMIT=$(jq -r '.commit' insider.json)
else
echo "No MS_COMMIT for ${RELEASE_VERSION}"
exit 1
fi
else else
if [[ "${RELEASE_VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+$ ]]; if [[ "${RELEASE_VERSION}" =~ ^([0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+$ ]];
then then