Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version check workflow again #302

Merged
merged 11 commits into from
Nov 27, 2024
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
Loading