From 6759e7bc986502ea47d47140dbcbdd963af403cc Mon Sep 17 00:00:00 2001 From: Yael <109152729+yaelkinor2@users.noreply.github.com> Date: Wed, 15 Jan 2025 19:46:54 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 354b8c6..9e14134 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: version=$(git tag | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1) version_without_v=$(echo $version | sed -r 's/v(.+)/\1/') file="cmd/version.go" - if [ "v$(grep '// ci-version-check' $file | sed -r 's/.*return\s"(.+)".+/\1/')" != "$version" ] ; then + if [ "v$(grep '// ci-version-check' $file | sed -r 's/.+return "(.+)" .+/\1/')" != "$version" ] ; then echo "Tag version do not match application version in $file" exit 1 fi