Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hvarg committed Sep 11, 2024
1 parent bbdb200 commit 9f6b993
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
run: |
git diff --name-only HEAD HEAD~1 -- ./development > updated_files.txt
while read p; do
xmllint $p --xpath "//*[local-name()='RDF']/*[local-name()='Ontology']/*[local-name()='versionInfo']/text()";
echo "$p" | sed s/Ontology.owl//g | sed s/development\\///g | sed s/PD/pd-/g | tr '[:upper:]' '[:lower:]';
newFolder="$(echo "$p" | sed s/Ontology.owl//g | sed s/development\\///g | sed s/PD/pd-/g | tr '[:upper:]' '[:lower:]')/$(xmllint $p --xpath "//*[local-name()='RDF']/*[local-name()='Ontology']/*[local-name()='versionInfo']/text()" | sed s/v//g )"
docker run -ti --rm \
-v `pwd`:/usr/local/widoco/in:Z \
-v `pwd`/release:/usr/local/widoco/out:Z \
ghcr.io/dgarijo/widoco:latest -ontFile $p -outFolder $newFolder -noPlaceHolderText
echo "$p -> $newFolder"
done < updated_files.txt
git diff
2 changes: 1 addition & 1 deletion development/PDCognitiveOntology.owl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<!--
///////////////////////////////////////////////////////////////////////////////////////
//
//
// Annotation properties
//
///////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 9f6b993

Please sign in to comment.