get_repo.sh 529 B

1234567891011121314
  1. #!/bin/bash
  2. # figure out latest tag by calling MS update API
  3. UPDATE_INFO=$(curl https://update.code.visualstudio.com/api/update/darwin/stable/lol)
  4. export LATEST_MS_COMMIT=$(echo $UPDATE_INFO | jq -r '.version')
  5. export LATEST_MS_TAG=$(echo $UPDATE_INFO | jq -r '.name')
  6. echo "Got the latest MS tag: ${LATEST_MS_TAG}"
  7. git clone https://github.com/Microsoft/vscode.git --branch $LATEST_MS_TAG --depth 1
  8. # for GH actions
  9. echo "LATEST_MS_COMMIT=$LATEST_MS_COMMIT" >> $GITHUB_ENV
  10. echo "LATEST_MS_TAG=$LATEST_MS_TAG" >> $GITHUB_ENV