Skip to content

Commit

Permalink
Eject from deploy if matching semantic version is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
divmain committed Jul 5, 2017
1 parent 81ab943 commit 109fd70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
if [ "$TRAVIS_OS_NAME" != "linux" ]; then
echo "Deploy on $TRAVIS_OS_NAME is disabled; aborting publish."
exit 0;
exit 0
fi

PULL_REQUEST_NUMBER=$(git show HEAD --format=format:%s | sed -nE 's/Merge pull request #([0-9]+).*/\1/p')
Expand All @@ -28,6 +28,7 @@ else
((VERSION_ARRAY[2]++))
else
echo "Matching semantic version not found; aborting publish."
exit 1
fi

git config --global user.name "Dale Bustad (automated)"
Expand Down

0 comments on commit 109fd70

Please sign in to comment.