Skip to content

Commit

Permalink
Test13
Browse files Browse the repository at this point in the history
  • Loading branch information
steveraysteveray committed Sep 20, 2023
1 parent 51f9a14 commit 426f2c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF" >> $GITHUB_ENV
echo "$files" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "FILES=$files" >> $GITHUB_ENV
- name: Echo changed files
run: |
Expand Down
3 changes: 1 addition & 2 deletions file1.shapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# imports: http://datashapes.org/dash
# prefix: file1

@base <https://example/file1> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix file1: <https://example/file1#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
Expand All @@ -14,7 +13,7 @@
<https://example/file1>
a owl:Ontology ;
owl:imports <http://datashapes.org/dash> ;
owl:versionInfo "Created with TopBraid Composer" ;
owl:versionInfo "Created with TopBraid Composer" ;
.
file1:DestinationClass_1
a file1:Location ;
Expand Down
2 changes: 1 addition & 1 deletion subfolder/file2.shapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ file1:isPointOfShape
a owl:Ontology ;
owl:imports <http://datashapes.org/dash> ;
owl:imports <https://example/file1> ;
owl:versionInfo "Created with TopBraid Composer" ;
owl:versionInfo "Created with TopBraid Composer" ;
.
file2:ShouldFail
a file1:RandomOtherClass ;
Expand Down

0 comments on commit 426f2c8

Please sign in to comment.