Skip to content

Commit

Permalink
fix codecov again
Browse files Browse the repository at this point in the history
fix another time the codecov script it wasn't robust enough previously
now it should be hopefully 🤞
  • Loading branch information
chmouel committed May 3, 2024
1 parent 7eee8f0 commit a299120
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .tekton/generate-coverage-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ spec:
ARCH=aarch64
git config --global --add safe.directory $(workspaces.source.path)
git fetch -a --tags
url=$(curl -s https://uploader.codecov.io/${ARCH}/latest|grep 'http.*codecov"'|sed 's/.*"https/https/;s/".*//')
curl -LOs $url
version=$(curl -s https://uploader.codecov.io/${ARCH}/latest| sed -n '/full_version/ { s/.*full_version...//;s/".*//;p; }')
curl -LOs https://uploader.codecov.io/${version}/${ARCH}/codecov
chmod +x ./codecov
./codecov -C {{revision}} -v
- name: upload-release
Expand Down
4 changes: 2 additions & 2 deletions .tekton/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ spec:
set -eux
git config --global --add safe.directory $(workspaces.source.path)
git fetch -a --tags
url=$(curl -s https://uploader.codecov.io/aarch64/latest|grep 'http.*codecov"'|sed 's/.*"https/https/;s/".*//')
curl -LOs $url
version=$(curl -s https://uploader.codecov.io/aarch64/latest| sed -n '/full_version/ { s/.*full_version...//;s/".*//;p; }')
curl -LOs https://uploader.codecov.io/${version}/aarch64/codecov
chmod +x ./codecov
./codecov -P $GITHUB_PULL_REQUEST_ID -C {{revision}}
- name: lint
Expand Down

0 comments on commit a299120

Please sign in to comment.