File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
Check :
16
16
17
17
name : " Check permissions"
18
- runs-on : " ubuntu-24 .04"
18
+ runs-on : " ubuntu-22 .04"
19
19
steps :
20
20
21
21
- name : " Check permissions"
52
52
done
53
53
54
54
echo "<table>" >> $GITHUB_STEP_SUMMARY
55
- echo "<tr><td>Name</td><td>CPU cores</td><td>Memory GB</td><td>Storage GB</td><td alignt=right>Runners</td></tr>" >> $GITHUB_STEP_SUMMARY
55
+ echo "<tr><td>Name</td><td alignt=right >CPU cores</td><td alignt=right >Memory GB</td><td alignt=right >Storage GB</td><td alignt=right>Runners</td></tr>" >> $GITHUB_STEP_SUMMARY
56
56
SERVERS=$(curl -s -H "Authorization: Token ${{ secrets.NETBOX_TOKEN }}" -H "Accept: application/json; indent=4" \
57
57
"${{ secrets.NETBOX_API }}/virtualization/virtual-machines/?limit=500&name__empty=false&role=userlevel-runner&status=active" \
58
58
| jq -r '.results[] | .id')
66
66
echo -e "<tr><td colspan=5>" >> $GITHUB_STEP_SUMMARY
67
67
for runner in $(seq -f "%02g" 1 $RUNNERS | sed -e "s/.*/$NAME-&/"); do
68
68
INFO=$(cat runners.json | jq -r '.runners[] | select(.name | startswith("'$runner'"))' | jq -r '.name,.status,.busy' | xargs -n3 -d'\n' | sort | uniq)
69
- [[ -n $INFO ]] && echo ":+1:" >> $GITHUB_STEP_SUMMARY || echo ":exclamation: <small>($runner)</small>" >> $GITHUB_STEP_SUMMARY
69
+ [[ -n $INFO || ${NAME} == github ]] && echo ":+1:" >> $GITHUB_STEP_SUMMARY || echo ":exclamation: <small>($runner)</small>" >> $GITHUB_STEP_SUMMARY
70
70
done
71
71
echo -e "</td></tr>" >> $GITHUB_STEP_SUMMARY
72
72
done
You can’t perform that action at this time.
0 commit comments