Skip to content

Commit

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

0 comments on commit 1988174

Please sign in to comment.