Skip to content

Commit

Permalink
clones counter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienmorgan committed Dec 8, 2024
1 parent b6b4a66 commit 2ebe014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/clone-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
current_count=$(echo "$gist_content" | jq -r '.files."clone_count.json".content' | jq '.count')
echo "Current clones count from Gist: $current_count"
new_count=$((current_count + CLONE_COUNT))
new_content=$(jq -n --arg count "$new_count" '{"count": $count | tonumber}')
new_content=$(jq -n --arg count "$new_count" '{"count": ($count | tonumber | tostring)}')
curl -X PATCH -H "Authorization: token ${{ secrets.PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{"files":{"clone_count.json":{"content": '"$new_content"'}}}' \
Expand Down

0 comments on commit 2ebe014

Please sign in to comment.