"Branch" option is not ignored when the "tags" option is set

The documentation states the following:

tags: false : deployment is triggered if and only if $TRAVIS_TAG is empty. This also causes the branch condition to be ignored

This seems to be an invalid statement. For example:

deploy:
  on:
    branch: branch1
    tags: false

The expected behavior is that the branch condition will be ignored and the deployment will be triggered on every non-tagged push. However, it still deploys only when I push to branch1 and not to branch2:

Skipping a deployment with the releases provider because this branch is not permitted: branch2

When reporting problems, please consider including:

  1. What you are trying to achieve
  2. What you have tried (probably a link to the configuration)
  3. What happened instead (often, pointing to a build log URL, in the form of https://travis-ci.com/OWNER/REPO/build/NNNNNNN would be helpful).

It’s not about what I’m trying to achieve, it’s about the docs being inconsistent.

I’m trying to understand what you are trying to achieve and what actually happens. If there is a discrepancy in the documentation, we should look into it, but often it is also the case that the users’ understanding and expectation is different from what the documentation is trying to explain.

So, please include the build log URL that explains the problem you are having in more explicit detail.

Imprint