File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 Check :
1616
1717 name : " Check permissions"
18- runs-on : " ubuntu-24 .04"
18+ runs-on : " ubuntu-22 .04"
1919 steps :
2020
2121 - name : " Check permissions"
5252 done
5353
5454 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
5656 SERVERS=$(curl -s -H "Authorization: Token ${{ secrets.NETBOX_TOKEN }}" -H "Accept: application/json; indent=4" \
5757 "${{ secrets.NETBOX_API }}/virtualization/virtual-machines/?limit=500&name__empty=false&role=userlevel-runner&status=active" \
5858 | jq -r '.results[] | .id')
6666 echo -e "<tr><td colspan=5>" >> $GITHUB_STEP_SUMMARY
6767 for runner in $(seq -f "%02g" 1 $RUNNERS | sed -e "s/.*/$NAME-&/"); do
6868 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
7070 done
7171 echo -e "</td></tr>" >> $GITHUB_STEP_SUMMARY
7272 done
You can’t perform that action at this time.
0 commit comments