diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf9cd5b3a2cad883655692f2f15fa08d9267e250..4f875d4a4ed76bff66fbb7fba0df0806676b9979 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,7 @@ trigger-root: script: - apt update && apt install -y curl - TARGET_BRANCH="$CI_COMMIT_BRANCH" - - if [ "$TARGET_BRANCH" = "main" ]; then - TARGET_BRANCH="master" - fi + - 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"' only: - pushes \ No newline at end of file