Loading .gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -14,11 +14,11 @@ documentation: stage: build script: - curl --header "PRIVATE-TOKEN:$CI_DOC_TOKEN" https://forge.etsi.org/rep/api/v4/projects/592/repository/files/asn2md.py?ref=master | python -u -c "import sys, json, base64; sys.stdout.write(base64.b64decode(json.load(sys.stdin)['content']))" - curl --header "PRIVATE-TOKEN:$CI_DOC_TOKEN" https://forge.etsi.org/rep/api/v4/projects/592/repository/files/asn2md.py?ref=master | python -c "import sys, json, base64; open('asn2md.py', 'wb').write(base64.b64decode(json.load(sys.stdin)['content']))" - make doc - git add docs/*.md - git commit -m "Documentation update" - git remote rm origin && git remote add origin https://gitlab-ci-token:$CI_DOC_TOKEN@forge.etsi.org/rep/$CI_PROJECT_PATH.git - git remote rm origin && git remote add origin https://oauth2:$CI_DOC_TOKEN@forge.etsi.org/rep/$CI_PROJECT_PATH.git - git push origin HEAD:$CI_COMMIT_REF_NAME # Pushes to the same branch as the trigger only: changes: Loading Loading
.gitlab-ci.yml +2 −2 Original line number Diff line number Diff line Loading @@ -14,11 +14,11 @@ documentation: stage: build script: - curl --header "PRIVATE-TOKEN:$CI_DOC_TOKEN" https://forge.etsi.org/rep/api/v4/projects/592/repository/files/asn2md.py?ref=master | python -u -c "import sys, json, base64; sys.stdout.write(base64.b64decode(json.load(sys.stdin)['content']))" - curl --header "PRIVATE-TOKEN:$CI_DOC_TOKEN" https://forge.etsi.org/rep/api/v4/projects/592/repository/files/asn2md.py?ref=master | python -c "import sys, json, base64; open('asn2md.py', 'wb').write(base64.b64decode(json.load(sys.stdin)['content']))" - make doc - git add docs/*.md - git commit -m "Documentation update" - git remote rm origin && git remote add origin https://gitlab-ci-token:$CI_DOC_TOKEN@forge.etsi.org/rep/$CI_PROJECT_PATH.git - git remote rm origin && git remote add origin https://oauth2:$CI_DOC_TOKEN@forge.etsi.org/rep/$CI_PROJECT_PATH.git - git push origin HEAD:$CI_COMMIT_REF_NAME # Pushes to the same branch as the trigger only: changes: Loading