Try tu use rules somehow like that
rules
workflow: rules: - if: '$CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push"' when: always - when: never