Skip to content

Commit 13907e1

Browse files
committed
hil.yml: Fix the chunk matrix generation.
Signed-off-by: Abdelatif Guettouche <[email protected]>
1 parent 34d09e8 commit 13907e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: .github/workflows/hil.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
id: gen-chunks
3232
run: |
3333
set +e
34-
bash .github/scripts/sketch_utils.sh count tests
35-
sketches=$((? - 1))
36-
if [[ $sketches -gt ${{env.MAX_CHUNKS}} ]]; then
34+
.github/scripts/sketch_utils.sh count tests
35+
sketches=$?
36+
if [[ $sketches -ge ${{env.MAX_CHUNKS}} ]]; then
3737
$sketches=${{env.MAX_CHUNKS}}
3838
fi
3939
set -e
4040
rm sketches.txt
41-
CHUNKS=$(jq -c -n '$ARGS.positional' --args `seq 0 1 $sketches`)
41+
CHUNKS=$(jq -c -n '$ARGS.positional' --args `seq 0 1 $((sketches - 1))`)
4242
echo "::set-output name=chunks::${CHUNKS}"
4343
4444
Build:

0 commit comments

Comments
 (0)