mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 13:00:00 +00:00
Add debug logging for runners response in runner-fallback action
This commit is contained in:
parent
ac4d67146e
commit
5f1bb68723
5
.github/actions/runner-fallback/action.yml
vendored
5
.github/actions/runner-fallback/action.yml
vendored
@ -41,13 +41,16 @@ runs:
|
|||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
"https://api.github.com/repos/$repo/actions/runners?per_page=100")
|
"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
|
# Check if runners is null or empty
|
||||||
if [ -z "$runners" ] || [ "$runners" = "null" ]; then
|
if [ -z "$runners" ] || [ "$runners" = "null" ]; then
|
||||||
echo "❌ Error: Unable to fetch runners or no runners found." >&2
|
echo "❌ Error: Unable to fetch runners or no runners found." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Split wanted labels
|
# Process runners only if valid
|
||||||
IFS=',' read -ra WANT <<<"$PRIMARY"
|
IFS=',' read -ra WANT <<<"$PRIMARY"
|
||||||
online_found=0
|
online_found=0
|
||||||
while read -r row; do
|
while read -r row; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user