name: Auto Deploy Docs

on:
  push:
    branches: [dev]
    paths:
      - 'examples/sites/demos/pc/webdoc/**'

jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
    - name: Trigger main repo workflow
      run: |
        curl -X POST \
          -H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
          -H "Accept: application/vnd.github.v3+json" \
          https://api.github.com/repos/opentiny/docs/dispatches \
          -d '{"event_type":"submodule-updated"}'