From ccec6ed9b98364c897d67468d9af8710b2505b0c Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Fri, 3 Jan 2025 19:25:14 +0100 Subject: [PATCH] Aligns --- .github/workflows/generate-runners-status.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-runners-status.yml b/.github/workflows/generate-runners-status.yml index 0834f06..7e1bf01 100644 --- a/.github/workflows/generate-runners-status.yml +++ b/.github/workflows/generate-runners-status.yml @@ -52,7 +52,7 @@ jobs: done echo "" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY SERVERS=$(curl -s -H "Authorization: Token ${{ secrets.NETBOX_TOKEN }}" -H "Accept: application/json; indent=4" \ "${{ secrets.NETBOX_API }}/virtualization/virtual-machines/?limit=500&name__empty=false&role=userlevel-runner&status=active" \ | jq -r '.results[] | .id') @@ -66,7 +66,7 @@ jobs: echo -e "" >> $GITHUB_STEP_SUMMARY done
NameCPU coresMemory GBStorage GBRunners
NameCPU coresMemory GBStorage GBRunners
" >> $GITHUB_STEP_SUMMARY for runner in $(seq -f "%02g" 1 $RUNNERS | sed -e "s/.*/$NAME-&/"); do INFO=$(cat runners.json | jq -r '.runners[] | select(.name | startswith("'$runner'"))' | jq -r '.name,.status,.busy' | xargs -n3 -d'\n' | sort | uniq) - [[ -n $INFO ]] && echo ":+1:" >> $GITHUB_STEP_SUMMARY || echo ":exclamation: ($runner)" >> $GITHUB_STEP_SUMMARY + [[ -n $INFO || ${NAME} == github ]] && echo ":+1:" >> $GITHUB_STEP_SUMMARY || echo ":exclamation: ($runner)" >> $GITHUB_STEP_SUMMARY done echo -e "