4 Commits

Author SHA1 Message Date
Palash Tyagi
d6fe76f014 Merge 5f1bb68723 into ddcc539076 2025-05-05 00:36:46 +01:00
Palash Tyagi
5f1bb68723 Add debug logging for runners response in runner-fallback action 2025-05-05 00:36:42 +01:00
Palash Tyagi
ac4d67146e Add error handling for fetching runners in runner-fallback action 2025-05-05 00:34:48 +01:00
Palash Tyagi
5cca2ca149 Update coverage badge URL in README.md to point to the correct documentation path 2025-05-05 00:32:30 +01:00
2 changed files with 12 additions and 2 deletions

View File

@@ -40,7 +40,17 @@ runs:
runners=$(curl -s -H "Authorization: Bearer $TOKEN" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/$repo/actions/runners?per_page=100")
# Split wanted labels
# 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
# Process runners only if valid
IFS=',' read -ra WANT <<<"$PRIMARY"
online_found=0
while read -r row; do

View File

@@ -7,7 +7,7 @@
<!-- [![Last commit](https://img.shields.io/endpoint?url=https://magnus167.github.io/rustframe/rustframe/last-commit-date.json)](https://github.com/Magnus167/rustframe) -->
[![codecov](https://codecov.io/gh/Magnus167/rustframe/graph/badge.svg?token=J7ULJEFTVI)](https://codecov.io/gh/Magnus167/rustframe)
[![Coverage](https://img.shields.io/endpoint?url=https://magnus167.github.io/rustframe/rustframe/tarpaulin-badge.json)](https://magnus167.github.io/rustframe/rustframe/tarpaulin-report.html)
[![Coverage](https://img.shields.io/endpoint?url=https://magnus167.github.io/rustframe/docs/tarpaulin-badge.json)](https://magnus167.github.io/rustframe/docs/tarpaulin-report.html)
---