This piece of code below works fine in the free version (travis-ci.org). Basically, this code ensures that Travis CI build runs only when the Git commit message is any of run1, run2, or run3. Other Github Commit messages do not trigger the Travis CI build at all.
However, in the enterprise version (travis.ibm.com) the same code does not take the if statement into account and the Travis CI build runs for all Git commit messages. What am I missing here?
os: linux dist: bionic language: bash script: bash $TRAVIS_COMMIT_MESSAGE.sh if: commit_message IN ("run1","run2","run3")