Skip to content

Commit

Permalink
sort in place
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Dec 15, 2023
1 parent e9a8f4e commit 497099f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/new-device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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())))
Expand Down

0 comments on commit 497099f

Please sign in to comment.