fix deployment pipeline when merging to master
See https://gitlab.cern.ch/LHCData/lhc-sm-api/-/pipelines/6896331 for further details, but basically the deployment failed because merging to master was not only deploying pro but also dev. This change only introduces conditions to not deploy to dev when the commit branch is master.