Explorar o código

check for version input

Matthew R Kasun %!s(int64=3) %!d(string=hai) anos
pai
achega
db00d84df8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .github/workflows/buildandrelease.yml

+ 1 - 1
.github/workflows/buildandrelease.yml

@@ -18,7 +18,7 @@ jobs:
     steps:
       - name: Get Version Number
         run: |
-          if [[ -n ${VERSION} || -n ${TAG} ]]; then
+          if [[ -n "${{ github.event.inputs.version }}" ]]; then
             NETMAKER_VERSION=${{ github.event.inputs.version }}
           else
             NETMAKER_VERSION=$(curl -fsSL https://api.github.com/repos/gravitl/netmaker/tags | grep 'name' | head -1 | cut -d'"' -f4)