Conditional build - "when: tag" in special case?

We have a build pipeline which commits generated documents to the repository. I have the feeling, that the

when:
  event: tag

condition of following pipeline steps is disturbed by that. Is this behavior known? I can I circumvent it?