From c09558e79c94cb380b2e7ed8f501b18cd7e64e05 Mon Sep 17 00:00:00 2001 From: hvarg Date: Wed, 11 Sep 2024 00:09:11 -0300 Subject: [PATCH] test --- .github/workflows/main.yml | 20 ++++++++++---------- development/PDCognitiveOntology.owl | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec436dd..b97c7ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,20 +50,20 @@ jobs: shell: bash run: | while read p; do - mkdir -p tmp - chmod 777 tmp - newFolder="$(echo "release/$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 )" + version="$(xmllint $p --xpath "//*[local-name()='RDF']/*[local-name()='Ontology']/*[local-name()='versionInfo']/text()" | sed s/v//g" + mkdir -p $version + chmod 777 $version + newFolder="$(echo "release/$p" | sed s/Ontology.owl//g | sed s/development\\///g | sed s/PD/pd-/g | tr '[:upper:]' '[:lower:]')" ontology="$(echo $p | sed s/development\\///g)" - echo "$ontology -> $newFolder" - ls -la $newFolder docker run --rm \ -v `pwd`/development:/usr/local/widoco/in:Z \ - -v `pwd`/tmp:/usr/local/widoco/out:Z \ + -v `pwd`/$version:/usr/local/widoco/out:Z \ ghcr.io/dgarijo/widoco:latest -ontFile in/$ontology -outFolder out -noPlaceHolderText - ls -la tmp - chmod -R 755 tmp - chown -R runner:docker tmp - mv tmp/* $newFolder + + echo "$ontology -> $newFolder" + ls -la $newFolder/$version + ls -la $version + mv $version $newFolder rmdir tmp done < updated_files.txt diff --git a/development/PDCognitiveOntology.owl b/development/PDCognitiveOntology.owl index 37eec62..12ed32b 100644 --- a/development/PDCognitiveOntology.owl +++ b/development/PDCognitiveOntology.owl @@ -36,7 +36,7 @@