Ver código fonte

chore(CI): fix pkg-vsn error

zhanghongtong 4 anos atrás
pai
commit
7e3b7bb0fe
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      pkg-vsn.sh

+ 1 - 1
pkg-vsn.sh

@@ -14,7 +14,7 @@ fi
 
 RELEASE="$(grep -E "define.+EMQX_RELEASE.+${EDITION}" include/emqx_release.hrl | cut -d '"' -f2)"
 
-if [ -d .git ] && ! git describe --tags --match "${RELEASE}" --exact >/dev/null 2>&1; then
+if [ -d .git ] && ! git describe --tags --match "[e|v]${RELEASE}" --exact >/dev/null 2>&1; then
     SUFFIX="-$(git rev-parse HEAD | cut -b1-8)"
 fi