---
docs:drawio:
  extends: .auto-commit-setup
  script:
    - docker run -v $(pwd):/data rlespinasse/drawio-export -E jpeg -s 2
    - git add .
    - git commit -m 'exported jpeg from drawio diagram [skip ci]'
    - git push --set-upstream origin master
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
