only does not work as expected in CI CD
Summary
only: changes: - package-lock.json - yarn.lock refs: - merge_requests - master - ^(feature|hotfix)/(.*)+$
does not work.
Steps to reproduce
only: changes: - package-lock.json - yarn.lock refs: - merge_requests - master - ^(feature|hotfix)/(.*)+$
add the above in a pipeline for a stage. any change in package-lock.json or yarn.json + if (merge request or master push or feature/* or hotfix/* push) should trigger the stage.
What is the current bug behavior?
It acts weird most of the times.Sometimes it gets triggered, sometimes not.
What is the expected correct behavior?
It should trigger only when there is a change in package-lock.json or yarn.lock file and in the respective refs.