Skip to content

Commit

Permalink
test: direct wget vs. rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 8, 2024
1 parent 87269f9 commit 0324a2c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@ jobs:
run: |
case ${{ steps.key.outputs.root_version }} in
latest)
curl --request GET \
--url https://api.github.com/repos/root-project/ROOT/releases/latestt \
--header "Accept: application/vnd.github+json" \
--header "X-GitHub-Api-Version: 2022-11-28" \
--fail-with-body |\
jq -r '.' | tee payload.json
cat payload.json | jq -r '.tarball_url' > url.txt
wget -nv --no-check-certificate --output-document root.tar.gz \
https://api.github.com/repos/root-project/root/tarball/v6-32-04
;;
*)
curl --request GET \
Expand All @@ -131,9 +126,9 @@ jobs:
--fail-with-body |\
jq -r '.' | tee payload.json
cat payload.json | jq -r '.[] | select (.name=="'${{ steps.key.outputs.root_version }}'") | .tarball_url' > url.txt
wget -nv --no-check-certificate --output-document root.tar.gz $(cat url.txt)
;;
esac
wget -nv --no-check-certificate --output-document root.tar.gz $(cat url.txt)
tar xf root.tar.gz
ls -t
mv -v $(ls -td root-* | head -n1) root_src
Expand Down

0 comments on commit 0324a2c

Please sign in to comment.