lith hace 1 año
padre
commit
ce1fdc9963
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Publish/DevOps2/github-bash/76.github-push-release.sh

+ 2 - 2
Publish/DevOps2/github-bash/76.github-push-release.sh

@@ -43,12 +43,12 @@ echo "release_version=${appVersion}" >> $GITHUB_ENV
 
 
 # draft or preivew
-if [[ $version =~ "preview" ]]
+if [[ "$appVersion" =~ "preview" ]]
 then
   echo preivew
   echo "release_prerelease=true" >> $GITHUB_ENV
 else
-  if  [[ "" = $(echo $appVersion | tr -d "0-9\.") ]]
+  if  [[ "" = "$(echo $appVersion | tr -d \"0-9\\.\")" ]]
   then
     echo release
   else