check for version input

This commit is contained in:
Matthew R Kasun 2022-03-11 17:41:46 -05:00 committed by GitHub
parent 80b7862370
commit db00d84df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)