Skip to content

Commit 71be84d

Browse files
committed
Merge branch 'devonfw-tutorials:main' into main
2 parents a1605c2 + 26c206b commit 71be84d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/buildPullRequest.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ jobs:
1919
- name: Setup matrix combinations
2020
id: setup-matrix-combinations
2121
run: |
22+
dirs=()
2223
for changed_file in ${{ steps.changedfiles.outputs.all }}; do
2324
dir="$(echo $changed_file | cut -d/ -f1)"
24-
MATRIX_PARAMS_COMBINATIONS=$MATRIX_PARAMS_COMBINATIONS'{"tutorial": "'$dir'"},'
25+
if [[ ! " ${dirs[@]} " =~ " ${dir} " ]]; then
26+
MATRIX_PARAMS_COMBINATIONS=$MATRIX_PARAMS_COMBINATIONS'{"tutorial": "'$dir'"},'
27+
fi
28+
dirs+=($dir)
2529
done
2630
echo ::set-output name=matrix-combinations::{\"include\":[$MATRIX_PARAMS_COMBINATIONS]}
2731
outputs:

0 commit comments

Comments
 (0)