From 6c72bfd169bd3c70cbff141461b7a73bb14a2425 Mon Sep 17 00:00:00 2001 From: shupershuff <63577525+shupershuff@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:03:43 +1200 Subject: [PATCH] Update GetDownloadCount.yml --- .github/workflows/GetDownloadCount.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/GetDownloadCount.yml b/.github/workflows/GetDownloadCount.yml index 8017a72..9d956f1 100644 --- a/.github/workflows/GetDownloadCount.yml +++ b/.github/workflows/GetDownloadCount.yml @@ -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