mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-25 11:17:13 +00:00
Make curl
fail on errors in xtask publish-release-notes
This commit is contained in:
parent
86621a7cc0
commit
c7c6c6b814
@ -57,7 +57,7 @@ fn update_release(sh: &Shell, tag_name: &str, release_notes: &str) -> Result<()>
|
||||
|
||||
let release_json = cmd!(
|
||||
sh,
|
||||
"curl -s -H {accept} -H {authorization} -H {api_version} {release_url}/tags/{tag_name}"
|
||||
"curl -sf -H {accept} -H {authorization} -H {api_version} {release_url}/tags/{tag_name}"
|
||||
)
|
||||
.read()?;
|
||||
let release_id = cmd!(sh, "jq .id").stdin(release_json).read()?;
|
||||
@ -72,7 +72,7 @@ fn update_release(sh: &Shell, tag_name: &str, release_notes: &str) -> Result<()>
|
||||
.bool("prerelease", false);
|
||||
let _ = cmd!(
|
||||
sh,
|
||||
"curl -s -X PATCH -H {accept} -H {authorization} -H {api_version} {release_url}/{release_id} -d {patch}"
|
||||
"curl -sf -X PATCH -H {accept} -H {authorization} -H {api_version} {release_url}/{release_id} -d {patch}"
|
||||
)
|
||||
.read()?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user