Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
e6dc44cd
Unverified
Commit
e6dc44cd
authored
Feb 24, 2020
by
s3krit
Committed by
GitHub
Feb 24, 2020
Browse files
CI: fix bad URL in publish_draft_release.sh (#858)
parent
86d49a45
Pipeline
#80318
failed with stages
in 10 minutes and 8 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
scripts/gitlab/publish_draft_release.sh
View file @
e6dc44cd
...
...
@@ -103,7 +103,7 @@ data=$(jq -Rs --arg version "$version" \
"prerelease": false
}'
< /dev/null
)
out
=
$(
curl
-s
-X
POST
--data
"
$data
"
-H
"Authorization: token
$GITHUB_RELEASE_TOKEN
"
"
$api_base
/releases"
)
out
=
$(
curl
-s
-X
POST
--data
"
$data
"
-H
"Authorization: token
$GITHUB_RELEASE_TOKEN
"
"
$api_base
/
paritytech/polkadot/
releases"
)
html_url
=
$(
echo
"
$out
"
| jq
-r
.html_url
)
...
...
@@ -111,6 +111,8 @@ if [ "$html_url" == "null" ]
then
echo
"[!] Something went wrong posting:"
echo
"
$out
"
# If we couldn't post, don't want to announce in Matrix
exit
1
else
echo
"[+] Release draft created:
$html_url
"
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment