Skip to content

Commit

Permalink
Bugfix #Contributors now regards pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
MSt-10 committed Jun 12, 2024
1 parent 23dcf64 commit 38eada3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ runs:
# Get the number of commits using GitHub API and pagination info
NUM_COMMITS=$(curl -s -I "${API_URL}/commits?per_page=1" | grep -i 'link:' | sed -E 's/.*page=([0-9]+)>; rel="last".*/\1/')
NUM_STARS=$(curl -s $API_URL | jq '.stargazers_count // 0')
NUM_CONTRIBUTORS=$(curl -s $API_URL/contributors | jq 'length // 0')
NUM_CONTRIBUTORS=$(curl -s -I "${API_URL}/contributors?per_page=1" | grep -i 'link:' | sed -E 's/.*page=([0-9]+)>; rel="last".*/\1/')
echo "| Attribute | Value |"
echo "| ----------------- | ----- |"
Expand Down

0 comments on commit 38eada3

Please sign in to comment.