From 497099f05b374daf3e46ba80315c92c0bbd320ab Mon Sep 17 00:00:00 2001 From: Wil Thieme Date: Fri, 15 Dec 2023 18:47:06 -0500 Subject: [PATCH] sort in place --- .github/workflows/new-device.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/new-device.yml b/.github/workflows/new-device.yml index acee89825..16344f1ed 100644 --- a/.github/workflows/new-device.yml +++ b/.github/workflows/new-device.yml @@ -58,7 +58,7 @@ jobs: devices.append(new_device) # Sort the devices by manufacturer and model - devices = sorted(devices, key=lambda k: (k['manufacturer'], k['model'])) + devices.sort(key=lambda k: (k['manufacturer'], k['model'])) # Save manufacturer and model for later use set_output("mm", "_".join(re.findall(r"\w+",f"{new_device['manufacturer']}{new_device['model']})".lower())))