File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function github_release_asset_upload(){ # github_release_asset_upload <repo-path
151
151
local release_id=" $2 "
152
152
local release_file_name=" $3 "
153
153
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 ' `
155
155
if [ ! " $release_asset " == " " ] && [ ! " $release_asset " == " null" ]; then echo " $release_asset " ; else echo " " ; fi
156
156
}
157
157
You can’t perform that action at this time.
0 commit comments