ci: Skip .base-build job if no source code or configurations are changed
This MR adds logic to the CI/CD to skip .base-build
jobs if no source code or configurations are changed. This should significantly speed up CI pipelines for MRs that do not modify source code or change configurations. This job is always run in the master branch.