Skip to content

Commit

Permalink
- Fix bail condition
Browse files Browse the repository at this point in the history
  • Loading branch information
justindhill committed Jun 30, 2019
1 parent 7d8938d commit d21e042
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

TAGS_RESPONSE=`curl -X GET \
-H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/justindhill/YDNYNAB/releases"`
"https://api.github.com/repos/justindhill/YDNYNAB/tags"`

LATEST_TAG_SHA=`echo $TAGS_RESPONSE | jq -r '.[0].commit.sha'`
if [[ "$TRAVIS_COMMIT" -eq "$LATEST_TAG_SHA" ]]; then
if [[ "$TRAVIS_COMMIT" == "$LATEST_TAG_SHA" ]]; then
echo "This commit has already been built. Bailing."
exit 0
fi


Expand Down

0 comments on commit d21e042

Please sign in to comment.