Skip to content

Commit

Permalink
feat: manually joined folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Emdien committed Nov 22, 2023
1 parent f8131e6 commit 97eae25
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 97eae25

Please sign in to comment.