Skip to content

Commit

Permalink
Update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Gram21 committed Mar 8, 2024
1 parent 267e0d2 commit 4b4b602
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ jobs:
run: |
for project in Core TLR InconsistencyDetection; do
cd $project
FOUND_VERSION=$(mvn dependency:tree -DincludeScope=test | sort | grep -E "io.github.ardoco.(core|tlr|id|lissa)" | grep -oP ':\K\d+\.\d+\.\d+(-\w+)?' | awk '!seen[$0]++')
echo "Checking $project"
FOUND_VERSION=$( (mvn dependency:tree -DincludeScope=test | sort | grep -E "io.github.ardoco.(core|tlr|id|lissa)" | grep -oP ':\K\d+\.\d+\.\d+(-\w+)?' | awk '!seen[$0]++') || true)
echo "$FOUND_VERSION"
if [[ $FOUND_VERSION == *"SNAPSHOT"* ]]; then
echo "The version of ArDoCo Projects is a SNAPSHOT version."
Expand Down

0 comments on commit 4b4b602

Please sign in to comment.