diff options
| author | Noritada Kobayashi <noritada.kobayashi@gmail.com> | 2022-12-13 13:05:11 +0900 |
|---|---|---|
| committer | Noritada Kobayashi <noritada.kobayashi@gmail.com> | 2022-12-13 13:05:11 +0900 |
| commit | c7c6c6b8145dbf6d0fe4676325a143f4e584c25e (patch) | |
| tree | 46a50921c4ed90e9ebc2debf6fae502ecb82d805 | |
| parent | 86621a7cc0251445e9387081e07a1683f9f06059 (diff) | |
| download | rust-c7c6c6b8145dbf6d0fe4676325a143f4e584c25e.tar.gz rust-c7c6c6b8145dbf6d0fe4676325a143f4e584c25e.zip | |
Make `curl` fail on errors in `xtask publish-release-notes`
| -rw-r--r-- | xtask/src/publish.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/publish.rs b/xtask/src/publish.rs index 80453342070..2decd85c18a 100644 --- a/xtask/src/publish.rs +++ b/xtask/src/publish.rs @@ -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()?; |
