Skip to content
Snippets Groups Projects
Commit cb126f4b authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Update .gitlab-ci.yml file

parent b9c78349
No related branches found
No related tags found
Loading
...@@ -4,9 +4,7 @@ trigger-root: ...@@ -4,9 +4,7 @@ trigger-root:
script: script:
- apt update && apt install -y curl - apt update && apt install -y curl
- TARGET_BRANCH="$CI_COMMIT_BRANCH" - TARGET_BRANCH="$CI_COMMIT_BRANCH"
- if [ "$TARGET_BRANCH" = "main" ]; then - if [ "$TARGET_BRANCH" = "main" ]; then TARGET_BRANCH="master"; fi
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"' - '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: only:
- pushes - pushes
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment