Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Exit 0 on success for v2 uploading (#434)
Browse files Browse the repository at this point in the history
* Exit 0 on success for v2 uploading

* shellcheck

* bump to 1.0.3
  • Loading branch information
thomasrockhu committed May 24, 2021
1 parent 578ee4b commit 638717f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions SHA1SUM
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
537069158a6f72b145cfe5f782dceb608d9ef594 codecov
af0dd19ee59f977bf5793cffafe116d7c248aa62 env
3b699a4d1c42fe4331196730f561df0a653bcc60 codecov
8b75c056bddd46e8dbfaa475935fbba6f6a33c77 env
4 changes: 2 additions & 2 deletions SHA256SUM
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
d6aa3207c4908d123bd8af62ec0538e3f2b9f257c3de62fad4e29cd3b59b41d9 codecov
5ea092c6724fcd6d085e398524bb60f0dffdda452d925be48c686a8a085fcf6e env
b94776192b31a359d8c12fe2692c95b576d1526c07c219893cf9299542faf67c codecov
8d0fa7c26d1e95f361b054649a1ad6afe5e2a1a0f128289149c7227e15eefc28 env
4 changes: 2 additions & 2 deletions SHA512SUM
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
b6492196dd844cd81a688536bb42463d28bd666448335c4a8fc7f8f9b9b9afc346a467e3401e3fc49e6047442a30d93a4adfaa1590101224a186013c6179c48d codecov
59e080e8306360111c14972b897d329ec8527c50467b0f8f202f8cd79db5c9748711b08f15f0815612607c166cc3eda29a6c611c1c0ae3565f114dcdb4bdc2e1 env
1390a9fd1fdbf026dd10caa20d91fc118570e0edae21a4b69fa8fc0fd875f01714fd3b6ff63bacd32bbb9895340de8d4438a76dce6e15ef2d314a311bd4e5c07 codecov
47689572d9bcf89be411a63129a5eb95257558b5d8df6ae96a973bde6c954e9bc943f6a87c2884440abc831637b967f2da748564ff0f61d99dcf9b0a1447d1df env
9 changes: 4 additions & 5 deletions codecov
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

set -e +o pipefail

VERSION="1.0.2"
VERSION="1.0.3"

codecov_flags=( )
url="https://codecov.io"
Expand Down Expand Up @@ -1866,10 +1866,9 @@ else
-H 'Accept: text/plain' \
$curlargs \
"$url/upload/v2?$query&attempt=$i" || echo 'HTTP 500')
# HTTP 200
# http://....
status=$(echo "$res" | head -1 | cut -d' ' -f2)
if [ "$status" = "" ] || [ "$status" = "200" ];
# {"message": "Coverage reports upload successfully", "uploaded": true, "queued": true, "id": "...", "url": "https://codecov.io/..."\}
uploaded=$(grep -o '\"uploaded\": [a-z]*' <<< "$res" | head -1 | cut -d' ' -f2)
if [ "$uploaded" = "true" ]
then
say " Reports have been successfully queued for processing at ${b}$(echo "$res" | head -2 | tail -1)${x}"
exit 0
Expand Down
2 changes: 1 addition & 1 deletion env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

set -e +o pipefail

VERSION="1.0.2"
VERSION="1.0.3"

add()
{
Expand Down

0 comments on commit 638717f

Please sign in to comment.