Skip to content

Commit 71277f9

Browse files
committed
Aligns
1 parent 331f381 commit 71277f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/generate-runners-status.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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"
@@ -52,7 +52,7 @@ jobs:
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')
@@ -66,7 +66,7 @@ jobs:
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

0 commit comments

Comments
 (0)