build stop early if apk add fails
continuous-integration/appveyor/branch AppVeyor build failed Details

master
Jonatan Nilsson 2022-03-02 14:33:43 +00:00
parent be700ab012
commit c2a86ea8f6
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ test_script:
on_success:
- sh: |
apk add curl jq
if [ ! apk add curl jq ]; then
exit 1
fi
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
echo "Release already exists, nothing to do.";