Commit 2b1b10ad authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Testing access token

parent 74ecaca2
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -140,10 +140,10 @@ translate_schemas:
    - 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 main -- 103280\TS_103_280.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 meeting/LI70 -- 103280\TS_103_280.json)
    - echo $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