From 5f1bb68723b8a131fad5e832f25f9d9cc32f96a9 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Mon, 5 May 2025 00:36:42 +0100 Subject: [PATCH] Add debug logging for runners response in runner-fallback action --- .github/actions/runner-fallback/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/runner-fallback/action.yml b/.github/actions/runner-fallback/action.yml index 8abc9d6..9b9ec37 100644 --- a/.github/actions/runner-fallback/action.yml +++ b/.github/actions/runner-fallback/action.yml @@ -41,13 +41,16 @@ runs: -H "Accept: application/vnd.github+json" \ "https://api.github.com/repos/$repo/actions/runners?per_page=100") + # Debug: Print runners content + echo "Runners response: $runners" + # Check if runners is null or empty if [ -z "$runners" ] || [ "$runners" = "null" ]; then echo "❌ Error: Unable to fetch runners or no runners found." >&2 exit 1 fi - # Split wanted labels + # Process runners only if valid IFS=',' read -ra WANT <<<"$PRIMARY" online_found=0 while read -r row; do