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 6e16447 commit 70d5f21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/GetDownloadCount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
max_download_count=0
release_with_max_downloads=""
# Iterate through each release using a for loop
for release in $(echo "$releases" | jq -c '.[]'); do
# Iterate through each release and capture max downloads
echo "$releases" | jq -c '.[]' | while IFS= read -r release; do
release_name=$(echo "$release" | jq -r '.tag_name')
download_count=$(echo "$release" | jq '[.assets[].download_count // 0] | add')
Expand All @@ -59,7 +59,6 @@ jobs:
echo "release_with_max_downloads=$release_with_max_downloads" >> $GITHUB_OUTPUT
- name: Update JSON File
run: |
echo '{
Expand Down

0 comments on commit 70d5f21

Please sign in to comment.