Browse Source

check vars are set

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

+ 12 - 0
.github/workflows/buildandrelease.yml

@@ -24,6 +24,18 @@ jobs:
           # remove everything but digits and . for package (deb, rpm, etc) versions
           PACKAGE_VERSION=$(echo ${VERSION} | tr -cd '[:digit:].')
           echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
+      - name: Echo
+        run: |
+          echo ${{ env.NETMAKER_VERSION }}
+          echo ${{ env.PACKAGE_VERSION }}
+          if [ -z ${{ env.NETMAKER_VERSION }} ]
+          then
+            exit 1
+          fi
+          if [ -z ${{ env.PACKAGE_VERSION }} ]
+          then
+            exit 1
+          fi
       - name: Checkout
         uses: actions/checkout@v2