final fix
This commit is contained in:
@ -31,10 +31,9 @@ composer_update:
|
|||||||
image: composer:latest
|
image: composer:latest
|
||||||
interruptible: true # allows to stop the job if a newer pipeline starts, saving resources and allowing new jobs to start because job concurrency is limited
|
interruptible: true # allows to stop the job if a newer pipeline starts, saving resources and allowing new jobs to start because job concurrency is limited
|
||||||
script:
|
script:
|
||||||
- pwd
|
|
||||||
- git ${JOB_GIT_FLAGS} fetch origin ${TARGET_BRANCH}
|
- git ${JOB_GIT_FLAGS} fetch origin ${TARGET_BRANCH}
|
||||||
- git ${JOB_GIT_FLAGS} checkout ${TARGET_BRANCH}
|
- git ${JOB_GIT_FLAGS} checkout ${TARGET_BRANCH}
|
||||||
- git reset --hard
|
- git reset --hard origin/main
|
||||||
- git pull --allow-unrelated-histories
|
- git pull --allow-unrelated-histories
|
||||||
- export DATE_TIME="$(date '+%Y%m%d%H%M%S')"
|
- export DATE_TIME="$(date '+%Y%m%d%H%M%S')"
|
||||||
- export MR_BRANCH="${UPDATE_BRANCH_PREFIX}${DATE_TIME}"
|
- export MR_BRANCH="${UPDATE_BRANCH_PREFIX}${DATE_TIME}"
|
||||||
|
Reference in New Issue
Block a user