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 9f6b993 commit 1eca361
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
fetch-depth: 3

- name: Install xmllint
shell: bash
Expand All @@ -35,14 +35,16 @@ jobs:
shell: bash
run: |
docker pull ghcr.io/dgarijo/widoco:latest
- name: Check modified files
shell: bash
run: |
git diff --name-only HEAD HEAD~1 -- ./development > updated_files.txt
# What files were changed:
- name: Check files
- name: Create docs
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git diff --name-only HEAD HEAD~1 -- ./development > updated_files.txt
while read p; do
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 \
Expand All @@ -51,4 +53,13 @@ jobs:
ghcr.io/dgarijo/widoco:latest -ontFile $p -outFolder $newFolder -noPlaceHolderText
echo "$p -> $newFolder"
done < updated_files.txt
# What files were changed:
- name: Final checks
shell: bash
run: |
git status
git diff
#env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 1eca361

Please sign in to comment.