diff --git a/action.yml b/action.yml index 4eff7c1..5958847 100644 --- a/action.yml +++ b/action.yml @@ -51,8 +51,20 @@ runs: - name: Generate folder array id: folder-array run: | - myArray=(${{ inputs.ontology-folders }}) - echo "folders=${myArray[*]}" >> $GITHUB_OUTPUT + folders=(${{ inputs.ontology-folders }}) + extensions=("/*.owl", "/*.rdf", "/*.ttl", "/*.nt", "/*.n3", "/*.jsonld") + output="" + + + for folder in ${folders[@]}; do + for extension in "${fileExtensions[@]}"; do + output+=" $folder$extension" + done + done + + output="${output# }" + + echo "folders=${output}" >> $GITHUB_OUTPUT shell: bash - name: Get changed files @@ -62,7 +74,7 @@ runs: files_separator: ' ' files_ignore_separator: ' ' files: | - ${{ join(steps.folder-array.outputs.folders, '/*.owl ') }}${{ inputs.ontology-files }} + ${{ steps.folder-array.outputs.folders }} ${{ inputs.ontology-files }} files_ignore: | ${{ inputs.ignore-files }}