79723702

Date: 2025-08-02 23:14:49
Score: 1.5
Natty:
Report link

In documentation https://docs.gitlab.com/ci/variables/predefined_variables/ :

CI_COMMIT_TAG Pre-pipeline The commit tag name. Available only in pipelines for tags.

Also https://docs.gitlab.com/ci/yaml/#rulesif

So, it seems to me this should do what you want.

rules:
  - if: $CI_COMMIT_TAG
    when: never
  - if: 'master' == $CI_COMMIT_BRANCH
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: imme