Loading .gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -146,8 +146,8 @@ translate_schemas: - DIFF=$(git diff -w origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -- 103280/TS_103_280.schema.json) - echo $DIFF - echo $CI_MERGE_REQUEST_TARGET_BRANCH_NAME - if [ ! -z "$DIFF" ]; then echo "Changes detected"; fi # - if [ ! -z "$DIFF" ]; then git checkout -b branch-${CI_JOB_ID}; git add file.yaml && git commit -m "Updated file.yaml" && git push -o ci.skip origin branch-${CI_JOB_ID}:${CI_COMMIT_REF_NAME}; fi - git checkout -b branch-${CI_JOB_ID} - git add 103280/TS_103_280.schema.json && git commit -m "Automatic translation of schema" && git push -o ci.skip origin branch-${CI_JOB_ID}:${CI_COMMIT_REF_NAME} tags: - docker Loading Loading
.gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -146,8 +146,8 @@ translate_schemas: - DIFF=$(git diff -w origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -- 103280/TS_103_280.schema.json) - echo $DIFF - echo $CI_MERGE_REQUEST_TARGET_BRANCH_NAME - if [ ! -z "$DIFF" ]; then echo "Changes detected"; fi # - if [ ! -z "$DIFF" ]; then git checkout -b branch-${CI_JOB_ID}; git add file.yaml && git commit -m "Updated file.yaml" && git push -o ci.skip origin branch-${CI_JOB_ID}:${CI_COMMIT_REF_NAME}; fi - git checkout -b branch-${CI_JOB_ID} - git add 103280/TS_103_280.schema.json && git commit -m "Automatic translation of schema" && git push -o ci.skip origin branch-${CI_JOB_ID}:${CI_COMMIT_REF_NAME} tags: - docker Loading