Skip to content

Commit

Permalink
Update GetDownloadCount.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shupershuff authored Sep 12, 2024
1 parent 684926b commit 6c72bfd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/GetDownloadCount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@ jobs:
release_with_max_downloads=""
# Iterate through each release
echo "test1"
echo "$releases" | jq -c '.[]' | while read -r release; do
echo "test2"
release_data=$(echo "$release" | jq '.')
echo "test3"
download_count=$(echo "$release_data" | jq '[.assets[].download_count // 0] | add')
echo "test4"

# Check if this release has more downloads than the current max
if [ "$download_count" -gt "$max_download_count" ]; then
max_download_count=$download_count
Expand Down

0 comments on commit 6c72bfd

Please sign in to comment.