Step not triggered

Hey, i am using the following configuration for like 20 repositories - with the newest github repository this is not working (the step is not included in the pipeline)

kind: pipeline
type: docker
name: docker

steps:
  - name: npm
    image: plugins/npm
    settings:
      username: loeffel-io
      password:
        from_secret: GITHUB_TOKEN
      email: [email protected]
      registry: "https://npm.pkg.github.com"
    when:
      event: tag
      branch: master

tried it with master, main etc. - without the branch (tag only) everything works great

Edit: also ref: refs/heads/master not working

refs/heads/master not working

You cannot match a tag to /refs/heads/master because the tag ref follows the pattern refs/tags/*

tried it with master, main etc. - without the branch (tag only) everything works great

This is expected because a tag points to a commit, not a branch. If you attempt to match a tag to a branch, the condition will always evaluate to false and the step will always be skipped.