79740058

Date: 2025-08-19 14:35:38
Score: 0.5
Natty:
Report link

Long time passed since the question I have posted here. I solved it back then by adding the configuration in rules section below

rules:
    - if: $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+\.\d+$/ && $CI_COMMIT_BEFORE_SHA == "0000000000000000000000000000000000000000"
      when: always
    - if: $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+\.\d+$/
      when: always

Now the CI will be triggered when new branch is pushed.
This two ifs can be combined.

rules:
    - if: $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+\.\d+$/ && $CI_COMMIT_BEFORE_SHA == "0000000000000000000000000000000000000000" || $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+\.\d+$/
      when: always

This should resolve the problem.

BTW I could find a video in youtube describing my exact issue.
Here is the link --> https://www.youtube.com/watch?v=77Q0xykWzOI&ab_channel=vlogize

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): Here is the link
  • Whitelisted phrase (-2): I solved
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Henrik Amirbekyan