Commit 5573885b authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Adding translation to pipeline

parent e575b3b0
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -132,6 +132,21 @@ lint_json:
# -----------------------------------------------------------
# Build

translate_schemas:
  image: "forge.etsi.org:5050/li/schemas-definitions/forgelib"
  stage: build
  interruptible: true
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
  script:
    - 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:${COMMIT_TOKEN}@host/group/repo.git
    - DIFF=$(git diff)
    - 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 

generate_artefacts:
  image: "forge.etsi.org:5050/li/schemas-definitions/forgelib"
  stage: build