Skip to content

Commit 02db4ad

Browse files
committed
test 6,Find new structure
1 parent 2ecc32a commit 02db4ad

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

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

+5-20
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,6 @@ jobs:
4646
# Fetch variables and move them to the GITHUB_OUTPUT and fetch HIL information
4747
- id: startup
4848
run: |
49-
# find libraries with makefile
50-
# declare -a data
51-
# cd $GITHUB_WORKSPACE
52-
# for x in libraries/*;
53-
# do
54-
# if [ -f $x/Makefile ]; then
55-
# data+=($x);
56-
# fi;
57-
# done;
58-
data+=("A")
59-
data+=("B")
60-
61-
62-
export lib=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${data[@]}")
63-
echo "lib=${lib}"
64-
65-
6649
# switch on the HIL
6750
cd /opt/runner_support/
6851
REPO="$(basename "$GITHUB_REPOSITORY")"
@@ -72,9 +55,11 @@ jobs:
7255
hil=$(./py_checkusb.py --readyaml $GITHUB_WORKSPACE/tests/Unity/hil-unity-checklist.yaml --json)
7356
echo "hil=${hil}" >> $GITHUB_OUTPUT
7457
75-
libraries=$(echo $hil | jq -r '.|keys[]')
76-
echo libraries="$libraries" >> $GITHUB_OUTPUT
77-
echo "libraries=${libraries[@]}"
58+
readarray -t data < <(echo $hil | jq -r '.|keys[]')
59+
export lib=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${data[@]}")
60+
echo "lib=${lib}"
61+
62+
echo libraries="$lib" >> $GITHUB_OUTPUT
7863
7964
8065
# Connect the GITHUB_OUTPUT to the variables and the workflow output mechanism

0 commit comments

Comments
 (0)