build stop early if apk add fails
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
Some checks failed
continuous-integration/appveyor/branch AppVeyor build failed
This commit is contained in:
parent
be700ab012
commit
c2a86ea8f6
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ test_script:
|
||||||
|
|
||||||
on_success:
|
on_success:
|
||||||
- sh: |
|
- sh: |
|
||||||
apk add curl jq
|
if [ ! apk add curl jq ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
CURR_VER=$(cat package.json | jq -r .version)
|
CURR_VER=$(cat package.json | jq -r .version)
|
||||||
if curl -s -X GET -H "Authorization: token $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"v${CURR_VER}\"" > /dev/null; then
|
if curl -s -X GET -H "Authorization: token $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"v${CURR_VER}\"" > /dev/null; then
|
||||||
echo "Release already exists, nothing to do.";
|
echo "Release already exists, nothing to do.";
|
||||||
|
|
Loading…
Reference in a new issue