From 38eada3aae26183c4f5ef6b73c70ae58331b9a91 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 12 Jun 2024 14:43:23 +0200 Subject: [PATCH] Bugfix #Contributors now regards pagination --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6817e582..e33fa20b 100644 --- a/action.yml +++ b/action.yml @@ -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 "| ----------------- | ----- |"