Skip to content

Commit b1f3d6c

Browse files
committed
Updated command for fetching version
1 parent c613d19 commit b1f3d6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
4343
# calculate the version and all tags
4444
if [ "$BRANCH" == "main" ]; then
45-
VERSION="$(xpath -q -e 'project/version/text()' pom.xml)"
45+
VERSION="$(cat pom.xml | grep "<version>.*</version>" | head -1 |awk -F'[><]' '{print $3}')"
4646
tags="latest"
4747
oldversion=""
4848
tmpversion="${VERSION}"

0 commit comments

Comments
 (0)