We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1605c2 + 26c206b commit 71be84dCopy full SHA for 71be84d
1 file changed
.github/workflows/buildPullRequest.yml
@@ -19,9 +19,13 @@ jobs:
19
- name: Setup matrix combinations
20
id: setup-matrix-combinations
21
run: |
22
+ dirs=()
23
for changed_file in ${{ steps.changedfiles.outputs.all }}; do
24
dir="$(echo $changed_file | cut -d/ -f1)"
- 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)
29
done
30
echo ::set-output name=matrix-combinations::{\"include\":[$MATRIX_PARAMS_COMBINATIONS]}
31
outputs:
0 commit comments