diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aaaf6a1..780bc04 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/development/PDCognitiveOntology.owl b/development/PDCognitiveOntology.owl index 63ecd6e..4608831 100644 --- a/development/PDCognitiveOntology.owl +++ b/development/PDCognitiveOntology.owl @@ -36,7 +36,7 @@