mirror of
https://github.com/armbian/scripts.git
synced 2026-01-06 10:32:48 -08:00
Update repository-status.yml
This commit is contained in:
4
.github/workflows/repository-status.yml
vendored
4
.github/workflows/repository-status.yml
vendored
@@ -52,7 +52,7 @@ jobs:
|
||||
echo "ABc= $CURRENT $EDGE"
|
||||
sudo apt-get -y install datamash
|
||||
LIST=$(curl -H "Authorization: Token ${{ secrets.NETBOX_TOKEN }}" -H "Accept: application/json; indent=4" \
|
||||
"https://stuff.armbian.com/netbox/api/virtualization/virtual-machines/?limit=500&name__empty=false&tag=github-runner" \
|
||||
"${{ secrets.NETBOX_API }}/virtualization/virtual-machines/?limit=500&name__empty=false&tag=github-runner" \
|
||||
| jq -r '.results[] | .display, .vcpus, .memory, .cluster.name, .tenant.name' | sed -e 's/^\|$/"/g' \
|
||||
| xargs -n5 -d'\n' | sed -e 's/\" \"/\",\"/g' | tr -d '"' | sed "s/,/\t/g" | datamash --sort -g 4 sum 2,3 --output-delimiter=,)
|
||||
(echo "CPU|MEM";
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
#echo "|Donated by | Virtual CPU cores |Memory |" > label.tmp
|
||||
#echo "|--|--:|--:|" >> label.tmp
|
||||
#curl -H "Authorization: Token ${{ secrets.NETBOX_TOKEN }}" -H "Accept: application/json; indent=4" \
|
||||
#"https://stuff.armbian.com/netbox/api/virtualization/virtual-machines/?limit=500&name__empty=false&tag=github-runner" \
|
||||
#"${{ secrets.NETBOX_API }}/virtualization/virtual-machines/?limit=500&name__empty=false&tag=github-runner" \
|
||||
#| jq -r '.results[] | .display, .vcpus, .memory, .cluster.name, .tenant.name' | sed -e 's/^\|$/"/g' \
|
||||
#| xargs -n5 -d'\n' | sed -e 's/\" \"/\",\"/g' | tr -d '"' | sed "s/,/\t/g" | datamash --sort -g 5 sum 2,3 --output-delimiter=, \
|
||||
#| LC_ALL=C awk -F , -v OFS=\| '$3/=1024' | cut -d"." -f1 | sed -e 's/$/ Gb/g' | sed -e 's/^\|$/|/g' >> label.tmp
|
||||
|
||||
Reference in New Issue
Block a user