2 years ago

#63524

test-img

shabab ashfaque

gitlab-ci.yml file rule "changes" running even when the file is not changed

I want to run my pipeline only when a selected file (lets call it x.yml) is changed. The problem is that even when x.yml is unchanged, the job is running. When I compare my branch with the master branch, the file shows as not changed. My question is, how does the "changes" keyword really work in gitlab-ci.yml file? Does it compare against an old commit on the same branch or does it compare with the master branch? Also, is there any possible way my files can be changed but not show up in the gitlab compare?

Thanks

gitlab

gitlab-ci.yml

0 Answers

Your Answer

Accepted video resources