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 9d87632 commit 51c336e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/GetDownloadCount.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,17 @@ jobs:
- name: Update JSON File
run: |
# Ensure the release version and download count are available
if [ -z "${{ steps.fetch_downloads.outputs.release_with_max_downloads }}" ] || [ -z "${{ steps.fetch_downloads.outputs.download_count }}" ]; then
echo "Error: Missing release version or download count."
exit 1
fi
# Create the JSON content with version and download count
echo '{
"schemaVersion": 1,
"label": "Downloads",
"message": "'${{ steps.fetch_downloads.outputs.download_count }}'",
"message": "v'${{ steps.fetch_downloads.outputs.release_with_max_downloads }}': '${{ steps.fetch_downloads.outputs.download_count }}'",
"color": "blue"
}' > .github/max-release-download-count.json
Expand Down

0 comments on commit 51c336e

Please sign in to comment.