Skip to content

Commit e2088de

Browse files
committed
Prevent loops
If we're already on a build tag, we don't need to do anything.
1 parent a457c26 commit e2088de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CI/github.build.deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ then
3131
exit 0; # prevent build fail
3232
fi
3333

34+
if [[ "$TRAVIS_BRANCH" == build* ]]
35+
then
36+
echo "We're already on a 'build branch' (or tag), don't need to deploy again";
37+
exit 0;
38+
fi
39+
3440
echo "Creating ${FILENAME}"
3541
zip -r "${FILENAME}" GameData/
3642

0 commit comments

Comments
 (0)