Skip to content

Commit e14849b

Browse files
committed
Sorts the array by the value of the device_class field
1 parent 8b18313 commit e14849b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/wireless-performance-autotest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
curl -H "Authorization: Token ${{ secrets.NETBOX_TOKEN }}" -H "Accept: application/json; indent=4" \
2929
"https://stuff.armbian.com/netbox/api/dcim/devices/?limit=500&name__empty=false&status=active" | \
3030
jq '.results[] | select(.device_role.slug == "wifi-dut") | {name: .name, serial: .serial, device_type: .device_type.model, device_class: .custom_fields.class, device_ip: .primary_ip.address}' | \
31-
jq -s >> $GITHUB_OUTPUT
31+
jq -s 'sort_by(.device_class)' >> $GITHUB_OUTPUT
3232
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
3333
3434
gradle:

0 commit comments

Comments
 (0)