Skip to content

Commit c1dc6da

Browse files
authored
Fix version check workflow again (#302)
1 parent 6e596fe commit c1dc6da

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/scripts/check_schema_version.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
44
ONTOLOGY_VERSION=$(mvn help:evaluate -Dexpression=ontology.version -q -DforceStdout)
55

6+
git fetch --all > /dev/null 2>&1
7+
68
# Check for changes and compare versions
7-
if git diff --quiet "main:$(git ls-tree -r --name-only main | grep 'iguana.owx')" 'src/main/resources/iguana.owx'; then
9+
if git diff --quiet "origin/main:$(git ls-tree -r --name-only origin/main | grep 'iguana.owx')" 'src/main/resources/iguana.owx'; then
810
DIFF_STATUS=0
911
else
1012
DIFF_STATUS=1

.github/scripts/tagcheck.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
git fetch --all > /dev/null 2>&1
4+
35
if git rev-parse "$1" >/dev/null 2>&1; then
46
echo "Tag $1 exist - update version in pom!"
57
exit 1

0 commit comments

Comments
 (0)