diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df0a1e879..fca0bbea0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,29 +16,29 @@ include: file: 'ci-templates/docker_build_nexus_v2.yml' localazy update: - image: node:20.5 - cache: - - key: - files: - - yarn.lock - 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 - - cd tools/localazy - - yarn install --cache-folder .yarn-cache - - yarn start - - cd ../.. - - git add . - - |- - CHANGES=$(git status --porcelain | wc -l) - if [ "$CHANGES" -gt "0" ] - then - git status - git commit -m "push back localazy update" - git push gitlab_origin HEAD:${CI_COMMIT_REF_NAME} -o ci.skip - fi - rules: - - if: $CI_PIPELINE_SOURCE == "schedule" + image: node:20.5 + cache: + - key: + files: + - yarn.lock + 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 + - cd tools/localazy + - yarn install --cache-folder .yarn-cache + - yarn start + - cd ../.. + - git add . + - |- + CHANGES=$(git status --porcelain | wc -l) + if [ "$CHANGES" -gt "0" ] + then + git status + git commit -m "push back localazy update" + git push gitlab_origin HEAD:${CI_COMMIT_REF_NAME} -o ci.skip + fi + rules: + - if: $CI_PIPELINE_SOURCE == "schedule"