Commit 25cbdc6e authored by Christophe Benz's avatar Christophe Benz
Browse files

Update schema.md using CI

parent 1aef2b3f
Pipeline #905 failed with stages
in 1 minute and 18 seconds
build_schema_doc:
stage: build
image: node:10
only:
changes:
- schema.json
before_script:
- npm install -g @opendataschema/table-schema-to-markdown
script:
- table-schema-to-markdown schema.json > schema.md
artifacts:
paths:
- schema.md
cache:
paths:
- node_modules/
commit_schema_md:
stage: deploy
image: git.opendatafrance.net:4567/scdl/documentation
only:
changes:
- schema.json
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- ssh-keyscan -t rsa git.opendatafrance.net >> ~/.ssh/known_hosts
script:
- git clone --branch $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL
- cd $CI_PROJECT_NAME
- git add schema.md
- git commit -m "Update schema.md" || true
- git push
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment