`build.tag != null` doesn't trigger the job [RESOLVED]

From what I understand from docs, when conditional statement

if: |
      build.tag != null

is used, whenever a release tag like v0.0.1 is published, a new build is triggered for the last commit to the main (or the published branch)

  • But somehow no job is triggered.
  • Is there anything else that should be added or settings changed?

I saw this Trigger Pipelines on Tag post.
That solves this problem