diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 165e32a..a2f8b4f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,15 +43,12 @@ jobs: - name: Get changed files id: getfile run: | - files=$(git diff-tree --no-commit-id --name-only -r $(git log -n 1 --pretty=format:"%H") | grep ".ttl$" || echo "") + files=$(git diff-tree --no-commit-id --name-only -r $(git log -n 1 --pretty=format:"%H") | grep ".ttl$" | tr '\n' ' ' || echo "") if [ -z "$files" ]; then echo "No .ttl files changed." exit 0 fi - echo $files # Debugging line to check the detected files - echo "FILES<> $GITHUB_ENV - echo "$files" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV + echo "FILES=$files" >> $GITHUB_ENV - name: Echo changed files run: | diff --git a/file1.shapes.ttl b/file1.shapes.ttl index c13b5b3..5f9a5f8 100644 --- a/file1.shapes.ttl +++ b/file1.shapes.ttl @@ -2,7 +2,6 @@ # imports: http://datashapes.org/dash # prefix: file1 -@base . @prefix dash: . @prefix file1: . @prefix owl: . @@ -14,7 +13,7 @@ a owl:Ontology ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file1:DestinationClass_1 a file1:Location ; diff --git a/subfolder/file2.shapes.ttl b/subfolder/file2.shapes.ttl index 1875fa8..917c8c1 100644 --- a/subfolder/file2.shapes.ttl +++ b/subfolder/file2.shapes.ttl @@ -19,7 +19,7 @@ file1:isPointOfShape a owl:Ontology ; owl:imports ; owl:imports ; - owl:versionInfo "Created with TopBraid Composer" ; + owl:versionInfo "Created with TopBraid Composer" ; . file2:ShouldFail a file1:RandomOtherClass ;