Browse Source

fix: correctly get MS_COMMIT [skip ci]

Baptiste Augrain 3 years ago
parent
commit
f212b71f2a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      get_repo.sh

+ 7 - 0
get_repo.sh

@@ -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