File tree 1 file changed +5
-20
lines changed
1 file changed +5
-20
lines changed Original file line number Diff line number Diff line change 46
46
# Fetch variables and move them to the GITHUB_OUTPUT and fetch HIL information
47
47
- id : startup
48
48
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
-
66
49
# switch on the HIL
67
50
cd /opt/runner_support/
68
51
REPO="$(basename "$GITHUB_REPOSITORY")"
72
55
hil=$(./py_checkusb.py --readyaml $GITHUB_WORKSPACE/tests/Unity/hil-unity-checklist.yaml --json)
73
56
echo "hil=${hil}" >> $GITHUB_OUTPUT
74
57
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
78
63
79
64
80
65
# Connect the GITHUB_OUTPUT to the variables and the workflow output mechanism
You can’t perform that action at this time.
0 commit comments