Commit 5b8db29c authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Trying again

parent 7c158b59
Loading
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -139,13 +139,14 @@ translate_schemas:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
  script:
    - echo "nothing to do"
#    - python utils/translate_spec.py utils/ts103280_config.json
#    - git config user.email "robo_lino@example.com"
#    - git config user.name "robo_lino"
#    - git remote set-url origin https://oauth2:${CI_ACCESS_TOKEN}@forge.etsi.org/rep/li/schemas-definitions.git
#    - DIFF=$(git diff -w origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -- 103280/TS_103_280.schema.json)
#    - echo $DIFF
#    - echo "nothing to do"
    - python utils/translate_spec.py utils/ts103280_config.json
    - git config user.email "robo_lino@example.com"
    - git config user.name "robo_lino"
    - git remote set-url origin https://oauth2:${CI_ACCESS_TOKEN}@forge.etsi.org/rep/li/schemas-definitions.git
    - 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
#    - 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}