From fb6f8440e9b3f877ec9bc0fbdfea4e33df2b7f13 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 22 May 2024 10:04:19 +0200 Subject: [PATCH] Debug --- action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index c07f1f34..670d8476 100644 --- a/action.yml +++ b/action.yml @@ -91,8 +91,14 @@ runs: REPO_PATH=$(echo $REPO_URL | sed -E 's/.*github\.com[:\/](.*)\.git/\1/') API_URL="https://api.github.com/repos/$REPO_PATH" - NUM_STARS=$(curl -s $API_URL | jq '.stargazers_count') - NUM_CONTRIBUTORS=$(curl -s $API_URL/contributors | jq 'length') + + echo "API_URL" + echo $API_URL + + git log + + NUM_STARS=$(curl -s $API_URL | jq '.stargazers_count // 0') + NUM_CONTRIBUTORS=$(curl -s $API_URL/contributors | jq 'length // 0') echo "| Attribute | Value |" echo "| ----------------- | ----- |"