Skip to content

Commit e6ea661

Browse files
authored
fixed matrix setup
1 parent 4973037 commit e6ea661

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/buildPullRequest.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ jobs:
1414
with:
1515
repository: devonfw-tutorials/tutorials
1616
path: playbooks
17+
- id: changedfiles
18+
uses: jitterbit/get-change-files@v1
1719
- name: Setup matrix combinations
1820
id: setup-matrix-combinations
1921
run: |
20-
cd playbooks
21-
DIFF_FILES="$(git diff --name-only origin/main | xargs)"
22-
IFS=$'\n'
23-
for i in $DIFF_FILES; do
24-
dir="$(echo $i | cut -d/ -f1)"
22+
for changed_file in ${{ steps.changedfiles.outputs.all }}; do
23+
dir="$(echo $changed_file | cut -d/ -f1)"
2524
MATRIX_PARAMS_COMBINATIONS=$MATRIX_PARAMS_COMBINATIONS'{"tutorial": "'$dir'"},'
2625
done
2726
echo ::set-output name=matrix-combinations::{\"include\":[$MATRIX_PARAMS_COMBINATIONS]}

0 commit comments

Comments
 (0)