From 1988174815c762dd4a8ce10a17194752629d2121 Mon Sep 17 00:00:00 2001 From: Wil Thieme Date: Fri, 15 Dec 2023 14:43:07 -0500 Subject: [PATCH] new-device.yml --- .github/workflows/new-device.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/new-device.yml b/.github/workflows/new-device.yml index 8ccf93cf7..203c6fc22 100644 --- a/.github/workflows/new-device.yml +++ b/.github/workflows/new-device.yml @@ -31,7 +31,12 @@ jobs: uses: jannekem/run-python-script-action@v1 with: script: | - print(${{ steps.device-data.outputs.json }}) + import json + new_device = ${{ steps.device-data.outputs.json }} + print(new_device["battery_quantity"]) + if int(new_device["battery_quantity"]) == 1: + del new_device["battery_quantity"] + print(new_device) # - name: Create pull request # uses: peter-evans/create-pull-request@v5