From aa2012bbda06853bfda84c84214beece27af472a Mon Sep 17 00:00:00 2001 From: Christoph Schabert Date: Mon, 23 Sep 2024 11:19:06 +0200 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ebac71ca..c8c245848 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,9 +21,9 @@ localazy update: paths: - .yarn-cache/ script: - - git config user.email "${CI_EMAIL}" - - git config user.name "${CI_USERNAME}" - - git remote add gitlab_origin https://${CI_USERNAME}:${CI_ACCESS_TOKEN}@gitlab.knecon.com/redactmanager/red-ui.git + # - git config user.email "${CI_EMAIL}" + # - git config user.name "${CI_USERNAME}" + # - git remote add gitlab_origin https://${CI_USERNAME}:${CI_ACCESS_TOKEN}@gitlab.knecon.com/redactmanager/red-ui.git - cd tools/localazy - yarn install --cache-folder .yarn-cache - yarn start @@ -35,7 +35,8 @@ localazy update: then git status git commit -m "push back localazy update" - git push gitlab_origin HEAD:${CI_COMMIT_REF_NAME} + # git push gitlab_origin HEAD:${CI_COMMIT_REF_NAME} + git push https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.knecon.com/redactmanager/red-ui.git fi rules: - if: $CI_PIPELINE_SOURCE == "schedule"