Stage with "on: tags: true" runs when no tag for the current commit

https://travis-ci.com/rubencabrera/odoo-docker/builds/144181440

I have a deploy stage set up like:

jobs:
  include:
  [other stages]
  - stage: deploy
    on:
      tags: true
    provider: script
    script:
    - "./.travis/docker_push.bash"
    skip_cleanup: true

This stage was running on commits that didn’t have a tag created by the previous stage. You can see on the link that I changed to using the $TRAVIS_TAG env variable, but it fails. What am I misunderstanding here?

5 posts were merged into an existing topic: Deploy running with deploy.on.tags = true even on non-tag builds