Trying different method of getting branch for libs push
This commit is contained in:
@@ -124,12 +124,12 @@ image:
|
||||
REPO=$(basename $(git remote get-url origin))
|
||||
git remote set-url origin https://ci_push:$TOKEN@gitlab.com/Micromelon/education/hardware/$REPO
|
||||
git fetch --all
|
||||
CURR_B=$(git name-rev --name-only $(git rev-parse HEAD))
|
||||
CURR_B=$(git branch --remote --verbose --no-abbrev --contains | sed -rne 's/^[^\/]*\/([^\ ]+).*$/\1/p')
|
||||
git rev-parse HEAD
|
||||
git branch
|
||||
git remote get-url origin
|
||||
echo $CURR_B
|
||||
git checkout $CURR_B
|
||||
git checkout origin/$CURR_B
|
||||
git commit --allow-empty -m "Merge"
|
||||
git push HEAD:$CURR_B -o merge_request.create -o merge_request.remove_source_branch=false -o merge_request.merge_when_pipeline_succeeds -o merge_request.target=master
|
||||
cd $CI_PROJECT_DIR
|
||||
|
||||
Reference in New Issue
Block a user