Skip to content

Commit 5080f02

Browse files
committed
add awk
1 parent 3b2e396 commit 5080f02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci-check-ns-api-version.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
echo "Tag is empty"
2929
exit 1
3030
fi
31-
if git ls-remote --tags origin | grep -q "refs/tags/$TAG$" ; then
31+
git ls-remote --tags origin | awk '{print $2}'
32+
if git ls-remote --tags origin | awk '{print $2}' | grep -q "refs/tags/$TAG$" ; then
3233
echo "Tag '$TAG' ALREADY EXISTS on the remote"
3334
exit 1
3435
else

0 commit comments

Comments
 (0)