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