Skip to content

Commit 5212c78

Browse files
committed
test
1 parent f64b898 commit 5212c78

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/validate.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
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

lib/firmware/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ description: Device firmware version information.
66
properties:
77
firmware_version:
88
display_name: Firmware Version
9-
type: string
9+
type: float
1010
description: Version of the device firmware.

0 commit comments

Comments
 (0)