Browse Source

check for version input

Matthew R Kasun 3 years ago
parent
commit
db00d84df8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/buildandrelease.yml

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

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