add workflow rules to ci to reduce redundant pipelines
add some workflow rules to avoid running pipelines for branches without new commits or running a branch pipeline and a merge request pipeline for the same commit
add some workflow rules to avoid running pipelines for branches without new commits or running a branch pipeline and a merge request pipeline for the same commit