Skip to content

Commit c4d213e

Browse files
Merge pull request #21 from codecov/th/add-version-metadata
Th/add version metadata
2 parents 9242319 + 3694110 commit c4d213e

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

.github/workflows/push-tag-to-extensions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
# yamllint disable rule:line-length
23
name: Push new tagged version
34
on: # yamllint disable-line rule:truthy
45
workflow_dispatch:

.github/workflows/push-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
---
22
# yamllint disable rule:line-length
33
name: Push tag to extension
44
on: # yamllint disable-line rule:truthy

dist/codecov.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
CC_WRAPPER_VERSION="0.0.22"
2+
CC_WRAPPER_VERSION="0.0.23"
33
set +u
44
say() {
55
echo -e "$1"
@@ -80,13 +80,16 @@ else
8080
say "$g ->$x Downloading $b${cc_url}$x"
8181
curl -Os $cc_url
8282
say "$g==>$x Finishing downloading $b${cc_os}:${CC_VERSION}$x"
83+
version_url="https://cli.codecov.io/${cc_os}/${CC_VERSION}"
84+
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
85+
say " Version: $b$version$x"
8386
say " "
8487
fi
8588
if [ "$CC_SKIP_VALIDATION" = "true" ] || [ -n "$CC_BINARY" ];
8689
then
8790
say "$r==>$x Bypassing validation as requested by user"
8891
else
89-
CC_PUBLIC_PGP_KEY=$(curl https://keybase.io/codecovsecurity/pgp_keys.asc)
92+
CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
9093
echo "${CC_PUBLIC_PGP_KEY}" | \
9194
gpg --no-default-keyring --import
9295
# One-time step

hooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
set -e
44

5+
yamllint .
56
python package.py
67
git add dist/codecov.sh
78
git add env

scripts/download.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ else
4040
codecov_url="$codecov_url/${codecov_os}/${codecov_filename}"
4141
say "$g ->$x Downloading $b${codecov_url}$x"
4242
curl -Os $codecov_url
43-
4443
say "$g==>$x Finishing downloading $b${codecov_os}:${CODECOV_VERSION}$x"
44+
45+
version_url="https://cli.codecov.io/${codecov_os}/${CODECOV_VERSION}"
46+
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
47+
say " Version: $b$version$x"
4548
say " "
4649
fi

scripts/set_validation_key.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CODECOV_PUBLIC_PGP_KEY=$(curl https://keybase.io/codecovsecurity/pgp_keys.asc)
1+
CODECOV_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
CODECOV_WRAPPER_VERSION="0.0.22"
2+
CODECOV_WRAPPER_VERSION="0.0.23"

0 commit comments

Comments
 (0)