Skip to content

Commit 29b75d4

Browse files
authored
Misc/fix check-tag condition in ci (#1224)
1 parent c37f93f commit 29b75d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cut_version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
run: |
2626
set -x
2727
eval $(cat new-version.txt)
28-
echo "Current tag: $(git tag --points-at HEAD)"
28+
echo -e "Current tag:\n$(git tag --points-at HEAD)"
2929
echo "Expected tag: ${CURRENT_VERSION}"
30-
if [[ $(git tag --points-at HEAD) != "${CURRENT_VERSION}" ]]; then
30+
if [[ ! $(git tag --points-at HEAD) =~ "${CURRENT_VERSION}" ]]; then
3131
echo "Tag not properly set, aborting..."
3232
exit 1
3333
fi

0 commit comments

Comments
 (0)