File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 44# zsync AppImage release asset.
55#
66
7+ . $( dirname $0 ) /json-common.sh
8+
79sudo apt install jq
810URL=$( curl -S -H " Authorization: token $GITHUB_TOKEN " -X GET " https://api.github.com/repos/$GITHUB_REPOSITORY /releases/tags/continuous" | jq -r ' .url' )
911if [ " $URL " != null ]; then # release exists
@@ -13,8 +15,14 @@ git fetch --prune --unshallow --tags -f
1315if git tag continuous; then # tag may or may not exists
1416 git push origin refs/tags/continuous
1517fi
16- curl -S -H " Authorization: token $GITHUB_TOKEN " -X POST " $URL " -T - << EOF
18+ TMP=$( mktemp)
19+ STATUS=$( curl -S -H " Authorization: token $GITHUB_TOKEN " -X POST " $URL " -T - -o " $TMP " -w %{http_code} << EOF
1720{
1821 "tag_name": "continuous"}
1922}
2023EOF
24+ )
25+
26+ check_status " $STATUS " " $TMP "
27+ rm " $TMP "
28+
Original file line number Diff line number Diff line change 11#! /bin/sh -eux
22
3+ . $( dirname $0 ) /json-common.sh
4+
35# Joins line that starts with space to previous:
46# https://www.gnu.org/software/sed/manual/html_node/Joining-lines.html
57MERG_LN=' :a ; $!N ; s/\n\s+/ / ; ta ; P ; D'
3638 PRERELEASE=false
3739fi
3840
39- curl -S -H " Authorization: token $GITHUB_TOKEN " -X $REQ $URL -T - << EOF
41+ TMP=$( mktemp)
42+ STATUS=$( curl -S -H " Authorization: token $GITHUB_TOKEN " -X $REQ $URL -T - -o " $TMP " -w %{http_code} << EOF
4043{
4144 "tag_name": "$TAG ", "name": "$TITLE ",
4245 "body": "Built $DATE \n\n$SUMMARY ",
4346 "draft": false, "prerelease": $PRERELEASE
4447}
4548EOF
49+ )
50+
51+ check_status " $STATUS " " $TMP "
52+ rm " $TMP "
53+
You can’t perform that action at this time.
0 commit comments