Skip to content

Commit

Permalink
Update update_clone_badge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HAISeq authored Mar 21, 2024
1 parent f08eb67 commit 9750b72
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/update_clone_badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ jobs:
id: get_counts
run: |
# Fetch clone count from GitHub API
CLONE_COUNT=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/CDCgov/phoenix/traffic/clones \
CLONE_COUNT=$(curl -s https://api.github.com/repos/CDCgov/phoenix/traffic/clones \
| jq -r '.count')
# Fetch download count from GitHub API (example for fetching release download count)
DOWNLOAD_COUNT=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/CDCgov/phoenix/releases \
DOWNLOAD_COUNT=$(curl -s https://api.github.com/repos/CDCgov/phoenix/releases \
| jq -r '.[] | select(.assets != null) | .assets[].download_count' \
| awk '{s+=$1} END {print s}')
Expand Down

0 comments on commit 9750b72

Please sign in to comment.