File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 validate :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v4
11+ - uses : actions/checkout@v5
1212
1313 - name : Build profiles archive
1414 run : bash make_profiles_archive.sh profiles.zip
@@ -19,10 +19,13 @@ jobs:
1919 -X POST https://api.enapter.com/v3/blueprints/device_profiles/validate \
2020 -H "Content-Type: application/zip" \
2121 --data-binary @profiles.zip)
22- body=$(echo "$response" | head -n -1)
22+ body=$(echo "$response" | head -n -1 | jq . )
2323 status=$(echo "$response" | tail -n 1)
2424 echo "$body"
2525 if [ "$status" -lt 200 ] || [ "$status" -ge 300 ]; then
2626 echo "Validation failed with HTTP $status"
2727 exit 1
2828 fi
29+ if [ "$(echo "$body" | jq '.validation_errors | length')" -gt 0 ]; then
30+ exit 1
31+ fi
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ description: Device firmware version information.
66properties :
77 firmware_version :
88 display_name : Firmware Version
9- type : string
9+ type : float
1010 description : Version of the device firmware.
You can’t perform that action at this time.
0 commit comments