Skip to content

Commit

Permalink
Merge pull request #21 from codecov/th/add-version-metadata
Browse files Browse the repository at this point in the history
Th/add version metadata
  • Loading branch information
thomasrockhu-codecov authored Nov 14, 2024
2 parents 9242319 + 3694110 commit c4d213e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push-tag-to-extensions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yamllint disable rule:line-length
name: Push new tagged version
on: # yamllint disable-line rule:truthy
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

---
# yamllint disable rule:line-length
name: Push tag to extension
on: # yamllint disable-line rule:truthy
Expand Down
7 changes: 5 additions & 2 deletions dist/codecov.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
CC_WRAPPER_VERSION="0.0.22"
CC_WRAPPER_VERSION="0.0.23"
set +u
say() {
echo -e "$1"
Expand Down Expand Up @@ -80,13 +80,16 @@ else
say "$g ->$x Downloading $b${cc_url}$x"
curl -Os $cc_url
say "$g==>$x Finishing downloading $b${cc_os}:${CC_VERSION}$x"
version_url="https://cli.codecov.io/${cc_os}/${CC_VERSION}"
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
say " Version: $b$version$x"
say " "
fi
if [ "$CC_SKIP_VALIDATION" = "true" ] || [ -n "$CC_BINARY" ];
then
say "$r==>$x Bypassing validation as requested by user"
else
CC_PUBLIC_PGP_KEY=$(curl https://keybase.io/codecovsecurity/pgp_keys.asc)
CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
echo "${CC_PUBLIC_PGP_KEY}" | \
gpg --no-default-keyring --import
# One-time step
Expand Down
1 change: 1 addition & 0 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -e

yamllint .
python package.py
git add dist/codecov.sh
git add env
5 changes: 4 additions & 1 deletion scripts/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ else
codecov_url="$codecov_url/${codecov_os}/${codecov_filename}"
say "$g ->$x Downloading $b${codecov_url}$x"
curl -Os $codecov_url

say "$g==>$x Finishing downloading $b${codecov_os}:${CODECOV_VERSION}$x"

version_url="https://cli.codecov.io/${codecov_os}/${CODECOV_VERSION}"
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
say " Version: $b$version$x"
say " "
fi
2 changes: 1 addition & 1 deletion scripts/set_validation_key.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CODECOV_PUBLIC_PGP_KEY=$(curl https://keybase.io/codecovsecurity/pgp_keys.asc)
CODECOV_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
CODECOV_WRAPPER_VERSION="0.0.22"
CODECOV_WRAPPER_VERSION="0.0.23"

0 comments on commit c4d213e

Please sign in to comment.