File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -91,15 +91,7 @@ printSuccess() {
91
91
downloadBinary () {
92
92
echo " [2/4] Downloading executable for $OS ($ARCH ) ..."
93
93
94
- printf " ${GREEN} 🚦 Fetching latest version ... ${NC} \n"
95
- res=$( curl -L -s -H ' Accept: application/json' https://github.com/$GITHUB_REPOSITORY_NAME /releases/latest)
96
- if [[ " $res " == * " error" * ]]; then
97
- printf " ${RED} ❌ There was an error. Try again later.${NC} \n"
98
- exit 1
99
- fi
100
- printSuccess
101
-
102
- GITHUB_LATEST_VERSION=$( echo $res | sed -e ' s/.*"tag_name":"\([^"]*\)".*/\1/' )
94
+ GITHUB_LATEST_VERSION=" {{ sdk.version }}"
103
95
GITHUB_FILE=" {{ language.params.npmPackage }}-${OS} -${ARCH} "
104
96
GITHUB_URL=" https://github.com/$GITHUB_REPOSITORY_NAME /releases/download/$GITHUB_LATEST_VERSION /$GITHUB_FILE "
105
97
You can’t perform that action at this time.
0 commit comments