Skip to content

Commit b81cae9

Browse files
committed
Add grouping by class, order by name
1 parent 6cd99d7 commit b81cae9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@ jobs:
2727
echo "DEPLOYMENT_MATRIX<<${delimiter}" >> "${GITHUB_OUTPUT}"
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" | \
30-
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 'sort_by(.device_class)' >> $GITHUB_OUTPUT
30+
jq '.results[] | select(.device_role.slug == "wifi-dut") | {
31+
name: .name,
32+
serial: .serial,
33+
device_type: .device_type.model,
34+
device_class: .custom_fields.class,
35+
device_ip: .primary_ip.address
36+
}' | \
37+
jq -s 'sort_by(.device_class, .name)' >> $GITHUB_OUTPUT
3238
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
3339
3440
gradle:

0 commit comments

Comments
 (0)