Skip to content

Commit d48280c

Browse files
committed
fix
1 parent 6aa288d commit d48280c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function github_release_asset_upload(){ # github_release_asset_upload <repo-path
151151
local release_id="$2"
152152
local release_file_name="$3"
153153
local release_file_path="$4"
154-
echo `curl -s -k -X POST -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" -H "Content-Type: application/octet-stream" --data-binary "@$release_file_path" "https://uploads.github.com/repos/$repo_path/releases/$release_id/assets?name=$release_file_name"`
154+
local release_asset=`curl -s -k -X POST -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" -H "Content-Type: application/octet-stream" --data-binary "@$release_file_path" "https://uploads.github.com/repos/$repo_path/releases/$release_id/assets?name=$release_file_name" | jq -r '.id'`
155155
if [ ! "$release_asset" == "" ] && [ ! "$release_asset" == "null" ]; then echo "$release_asset"; else echo ""; fi
156156
}
157157

0 commit comments

Comments
 (0)