From 7113c7e6efe760a3f7ca012babafec5170d0c781 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Tue, 16 Apr 2019 18:02:54 +0800 Subject: [PATCH] parse release --- release/bleedingrelease.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/release/bleedingrelease.sh b/release/bleedingrelease.sh index d047cc9e..0ba668e3 100755 --- a/release/bleedingrelease.sh +++ b/release/bleedingrelease.sh @@ -5,7 +5,9 @@ RELBODY="https://www.v2ray.com/chapter_00/01_versions.html" JSON_DATA=$(echo "{}" | jq -c ".tag_name=\"${RELEASE_TAG}\"") JSON_DATA=$(echo ${JSON_DATA} | jq -c ".prerelease=${PRERELEASE}") JSON_DATA=$(echo ${JSON_DATA} | jq -c ".body=\"${RELBODY}\"") -RELEASE_ID=$(curl --data "${JSON_DATA}" -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/v2fly/V2FlyBleedingEdgeBinary/releases | jq ".id") +RELEASE_DATA=$(curl --data "${JSON_DATA}" -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/v2fly/V2FlyBleedingEdgeBinary/releases) +echo $RELEASE_DATA +RELEASE_ID=$(echo $RELEASE_DATA| jq ".id") function uploadfile() { FILE=$1