From db00d84df8849d2fe64a16f0d80faf4cd5b378cd Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Fri, 11 Mar 2022 17:41:46 -0500 Subject: [PATCH] check for version input --- .github/workflows/buildandrelease.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/buildandrelease.yml b/.github/workflows/buildandrelease.yml index 15e23c05..cb5d6be8 100644 --- a/.github/workflows/buildandrelease.yml +++ b/.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)