mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 01:23:00 +08:00
check vars are set
This commit is contained in:
parent
6dd34e441f
commit
444c4ded24
1 changed files with 12 additions and 0 deletions
12
.github/workflows/buildandrelease.yml
vendored
12
.github/workflows/buildandrelease.yml
vendored
|
@ -24,6 +24,18 @@ jobs:
|
||||||
# remove everything but digits and . for package (deb, rpm, etc) versions
|
# remove everything but digits and . for package (deb, rpm, etc) versions
|
||||||
PACKAGE_VERSION=$(echo ${VERSION} | tr -cd '[:digit:].')
|
PACKAGE_VERSION=$(echo ${VERSION} | tr -cd '[:digit:].')
|
||||||
echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue