hotfix: Lazy import dreadnode to avoid cyclic issues for now #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Notify Documentation Update | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "docs/**" | |
| - ".hooks/generate_docs.py" | |
| - ".github/workflows/docs-update.yaml" | |
| workflow_dispatch: | |
| jobs: | |
| notify-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.UPDATE_DOCS_APP_ID }} | |
| private-key: ${{ secrets.UPDATE_DOCS_PRIVATE_KEY }} | |
| owner: "${{ github.repository_owner }}" | |
| repositories: | | |
| sdk | |
| prod-docs | |
| - name: Trigger docs repository workflow | |
| uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| repository: dreadnode/prod-docs | |
| event-type: code-update | |
| client-payload: | | |
| { | |
| "repository": "${{ github.repository }}", | |
| "ref": "${{ github.ref }}", | |
| "sha": "${{ github.sha }}", | |
| "source_dir": "docs", | |
| "target_dir": "open-source/rigging", | |
| "nav_target": "Open Source/Rigging" | |
| } |