mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-13 22:47:25 +00:00
Update bash uploader to 1.0.3
This commit is contained in:
parent
3ee49263a4
commit
95c9f38035
2 changed files with 8 additions and 10 deletions
9
dist/codecov
vendored
9
dist/codecov
vendored
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
set -e +o pipefail
|
set -e +o pipefail
|
||||||
|
|
||||||
VERSION="1.0.2"
|
VERSION="1.0.3"
|
||||||
|
|
||||||
codecov_flags=( )
|
codecov_flags=( )
|
||||||
url="https://codecov.io"
|
url="https://codecov.io"
|
||||||
|
|
@ -1866,10 +1866,9 @@ else
|
||||||
-H 'Accept: text/plain' \
|
-H 'Accept: text/plain' \
|
||||||
$curlargs \
|
$curlargs \
|
||||||
"$url/upload/v2?$query&attempt=$i" || echo 'HTTP 500')
|
"$url/upload/v2?$query&attempt=$i" || echo 'HTTP 500')
|
||||||
# HTTP 200
|
# {"message": "Coverage reports upload successfully", "uploaded": true, "queued": true, "id": "...", "url": "https://codecov.io/..."\}
|
||||||
# http://....
|
uploaded=$(grep -o '\"uploaded\": [a-z]*' <<< "$res" | head -1 | cut -d' ' -f2)
|
||||||
status=$(echo "$res" | head -1 | cut -d' ' -f2)
|
if [ "$uploaded" = "true" ]
|
||||||
if [ "$status" = "" ] || [ "$status" = "200" ];
|
|
||||||
then
|
then
|
||||||
say " Reports have been successfully queued for processing at ${b}$(echo "$res" | head -2 | tail -1)${x}"
|
say " Reports have been successfully queued for processing at ${b}$(echo "$res" | head -2 | tail -1)${x}"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
set -e +o pipefail
|
set -e +o pipefail
|
||||||
|
|
||||||
VERSION="1.0.2"
|
VERSION="1.0.3"
|
||||||
|
|
||||||
codecov_flags=( )
|
codecov_flags=( )
|
||||||
url="https://codecov.io"
|
url="https://codecov.io"
|
||||||
|
|
@ -1866,10 +1866,9 @@ else
|
||||||
-H 'Accept: text/plain' \
|
-H 'Accept: text/plain' \
|
||||||
$curlargs \
|
$curlargs \
|
||||||
"$url/upload/v2?$query&attempt=$i" || echo 'HTTP 500')
|
"$url/upload/v2?$query&attempt=$i" || echo 'HTTP 500')
|
||||||
# HTTP 200
|
# {"message": "Coverage reports upload successfully", "uploaded": true, "queued": true, "id": "...", "url": "https://codecov.io/..."\}
|
||||||
# http://....
|
uploaded=$(grep -o '\"uploaded\": [a-z]*' <<< "$res" | head -1 | cut -d' ' -f2)
|
||||||
status=$(echo "$res" | head -1 | cut -d' ' -f2)
|
if [ "$uploaded" = "true" ]
|
||||||
if [ "$status" = "" ] || [ "$status" = "200" ];
|
|
||||||
then
|
then
|
||||||
say " Reports have been successfully queued for processing at ${b}$(echo "$res" | head -2 | tail -1)${x}"
|
say " Reports have been successfully queued for processing at ${b}$(echo "$res" | head -2 | tail -1)${x}"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue