@@ -51,7 +51,7 @@ commands:
51
51
steps :
52
52
- run :
53
53
name : Download Codecov Bash Uploader
54
- command : curl -Outfile codecov -Uri << parameters.url >>
54
+ command : Invoke-WebRequest -Uri " << parameters.url >>" -Outfile codecov
55
55
when : << parameters.when >>
56
56
- when :
57
57
condition : << parameters.validate_url >>
@@ -61,10 +61,11 @@ commands:
61
61
command : |
62
62
$VERSION=((Select-String -path codecov 'VERSION=\"[0-9\.]*\"' | ForEach-Object {$_.Matches} | Foreach-Object {$_.Groups[0].Value})-split '"')[1]
63
63
foreach ($i in 1, 256, 512) {
64
- $hash = (((curl "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM")[0])-split( " " ))[0]
64
+ echo "Pulling public hashes from https://github.com/codecov/codecov-bash/releases/download/${VERSION}/SHA${i}SUM"
65
+ $hash = (((Invoke-WebRequest -Uri "https://github.com/codecov/codecov-bash/releases/download/${VERSION}/SHA${i}SUM")[0])-split( " " ))[0]
65
66
$scripthash = (Get-FileHash -Algorithm "SHA${i}" codecov).hash.ToLower()
66
67
If ($scripthash -ne $hash) {
67
- echo "Script hash: ${scripthash}"
68
+ echo "Script hash: ${scripthash}"
68
69
echo "Published has: ${hash}"
69
70
echo "SHASUMs do not match, exiting."
70
71
exit 1
@@ -75,7 +76,7 @@ commands:
75
76
- run :
76
77
name : Upload Coverage Results
77
78
command : |
78
- $arguments = @( "-Q", "codecov-circleci-orb-1.2.1 " )
79
+ $arguments = @( "-Q", "codecov-circleci-orb-1.2.2 " )
79
80
If ( "<< parameters.token >>" -ne "") {
80
81
$arguments += "-t"
81
82
$arguments += "<< parameters.token >>"
@@ -125,7 +126,7 @@ commands:
125
126
[[ -n "<< parameters.file >>" ]] && args+=( '-f << parameters.file >>' )
126
127
[[ -n "<< parameters.xtra_args >>" ]] && args+=( '<< parameters.xtra_args >>' )
127
128
bash codecov \
128
- -Q "codecov-circleci-orb-1.2.1 " \
129
+ -Q "codecov-circleci-orb-1.2.2 " \
129
130
-t "<< parameters.token >>" \
130
131
-n "<< parameters.upload_name >>" \
131
132
-F "<< parameters.flags >>" \
0 commit comments