Newer
Older
- if [ "$TARGET_BRANCH" = "main" ]; then TARGET_BRANCH="master"; fi
- 'curl --fail --request POST --form "variables[ADITO_COMMIT_MESSAGE]=$CI_COMMIT_MESSAGE" --form "token=$PUSH_TRIGGER_TOKEN" --form "ref=$TARGET_BRANCH" "https://gitlab.adito.de/api/v4/projects/676/trigger/pipeline"'
- if: '$CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_BRANCH =~ /^2024/ || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH)'