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 4e87f02 commit 483c6ab
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 @@ -33,8 +33,8 @@ jobs:
max_download_count=0
release_with_max_downloads=""
# Iterate through each release
echo "$releases" | jq -c '.[]' | while read -r release; do
# Iterate through each release using a for loop to avoid subshell issues
for release in $(echo "$releases" | jq -c '.[]'); do
release_data=$(echo "$release" | jq '.')
release_name=$(echo "$release_data" | jq -r '.tag_name')
download_count=$(echo "$release_data" | jq '[.assets[].download_count // 0] | add')
Expand All @@ -57,7 +57,6 @@ jobs:
echo "download_count=$max_download_count" >> $GITHUB_OUTPUT
echo "release_with_max_downloads=$release_with_max_downloads" >> $GITHUB_OUTPUT
- name: Update JSON File
run: |
echo '{
Expand Down

0 comments on commit 483c6ab

Please sign in to comment.