File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Check PR Katacoda Syntax
2
2
3
3
on :
4
4
pull_request_target :
5
-
5
+ branches : [ main ]
6
6
jobs :
7
7
setup-matrix :
8
8
runs-on : ubuntu-latest
@@ -21,12 +21,12 @@ jobs:
21
21
run : |
22
22
changedFiles=`node selectChangedFiles.js`
23
23
echo "${changedFiles}"
24
- echo "::set-output name=all ::$changedFiles"
24
+ echo "::set-output name=changedFiles ::$changedFiles"
25
25
- name : Setup matrix combinations
26
26
id : setup-matrix-combinations
27
27
run : |
28
28
dirs=()
29
- for changed_file in ${{ steps.changedfiles.outputs.all }}; do
29
+ for changed_file in ${{ steps.changedfiles.outputs.changedFiles }}; do
30
30
dir="$(echo $changed_file | cut -d/ -f1)"
31
31
if [[ ! " ${dirs[@]} " =~ " ${dir} " ]]; then
32
32
MATRIX_PARAMS_COMBINATIONS=$MATRIX_PARAMS_COMBINATIONS'{"tutorial": "'$dir'"},'
Original file line number Diff line number Diff line change @@ -7,14 +7,16 @@ async function selectChangedFiles() {
7
7
let arr = [ ] ;
8
8
try {
9
9
let get = await octokit . request ( 'GET /repos/{owner}/{repo}/pulls/{pull_number}/files' , {
10
- owner : 'devonfw-tutorials' ,
10
+ //owner: 'devonfw-tutorials',
11
+ owner : 'MarcelDiessner' ,
11
12
repo : 'tutorials' ,
12
13
pull_number : pr
13
14
} ) ;
14
15
let files = get . data ;
15
16
files . forEach ( file => {
16
17
arr . push ( file . filename )
17
18
} ) ;
19
+ console . log ( arr ) ;
18
20
} catch ( e ) {
19
21
throw e ;
20
22
}
You can’t perform that action at this time.
0 commit comments