Skip to content

Commit

Permalink
Fix version check workflow again (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv authored Nov 27, 2024
1 parent 6e596fe commit c1dc6da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/check_schema_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
ONTOLOGY_VERSION=$(mvn help:evaluate -Dexpression=ontology.version -q -DforceStdout)

git fetch --all > /dev/null 2>&1

# Check for changes and compare versions
if git diff --quiet "main:$(git ls-tree -r --name-only main | grep 'iguana.owx')" 'src/main/resources/iguana.owx'; then
if git diff --quiet "origin/main:$(git ls-tree -r --name-only origin/main | grep 'iguana.owx')" 'src/main/resources/iguana.owx'; then
DIFF_STATUS=0
else
DIFF_STATUS=1
Expand Down
2 changes: 2 additions & 0 deletions .github/scripts/tagcheck.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

git fetch --all > /dev/null 2>&1

if git rev-parse "$1" >/dev/null 2>&1; then
echo "Tag $1 exist - update version in pom!"
exit 1
Expand Down

0 comments on commit c1dc6da

Please sign in to comment.