Run job on branch OR path is modified

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

I need to run a job only if a branch is committed OR path is being modified Tried to use this configuration

build:
  script: ...
  only:
    refs:
      - tags
      - master
    changes:
      - path/

I've made a commit on branch master without editing files in 'path/', but job has not been started.

Edited Aug 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading