name: Update API docs
on: push
jobs:
  report:
    runs-on: ubuntu-latest
    steps:
      - name: checkout code
        uses: actions/checkout@v2

      - name: update api docs
        run: |
          cd scripts
          ./generate-docs.sh

      - name: Commit API documentation
        uses: EndBug/add-and-commit@v8
        with:
          default_author: github_actions
          message: '[web-bot] updated auto-generated documentation'
          add: 'docs/documentation/*.html --force'
