Skip to content
Snippets Groups Projects
Commit 23314346 authored by jurgenhaas's avatar jurgenhaas
Browse files

Improve DataCore pipeline when creating MR and merging it into main

parent 963b1ba1
Branches
No related tags found
No related merge requests found
......@@ -222,8 +222,11 @@ Push Changes:
- if [[ $EC -eq 0 ]]; then exit 0; fi
- git add *
- git commit -am "Updated assets by data core"
- if [[ "$CI_COMMIT_REF_NAME" == "develop" ]]; then git push -o ci.skip -o merge_request.create -o merge_request.target=main -o merge_request.merge_when_pipeline_succeeds; fi
- if [[ "$CI_COMMIT_REF_NAME" != "develop" ]]; then git push -o ci.skip; fi
- git push -o ci.skip
- if [[ "$CI_COMMIT_REF_NAME" != "develop" ]]; then exit 0; fi
- glab mr create --fill --yes --source-branch develop --target-branch main --title "Updated assets by data core"
- sleep 5;
- glab mr merge --yes develop
variables:
GIT_STRATEGY: none
cache: {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment