Skip to content

Commit b1f5849

Browse files
committed
test 6,Find new structure
1 parent 57fee12 commit b1f5849

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/hil-unity-checks.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,12 @@ jobs:
120120
121121
hil=${{ toJson(needs.setup.outputs.hil) }}
122122
lib=$(./py_checkusb.py --type ${{ env.library }} --json)
123-
readarray -t DEVICES < <(echo $lib | jq ".\"${{ env.library }}\" | keys[]" -r --compact-output --null-input)
124-
125-
if [[ -z $hil ]]; then
126-
echo "No HIL information found"
127-
exit 1
128-
fi
129-
if [[ -z $lib ]]; then
123+
if [[ -z $lib || $lib == {} ]]; then
130124
echo "No library information found"
131125
exit 1
132126
fi
127+
readarray -t DEVICES < <(echo $lib | jq ".\"${{ env.library }}\" | keys[]" -r --compact-output --null-input)
128+
133129
134130
135131
echo "HIL: $hil"

0 commit comments

Comments
 (0)