Skip to content

Notify Docs Site

Notify Docs Site #2

name: Notify Docs Site
on:
workflow_run:
workflows: [ "Build" ]
types: [ completed ]
branches: [ main ]
workflow_dispatch:
jobs:
dispatch:
if: (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
name: Trigger Site rebuild
runs-on: ubuntu-latest
steps:
- name: Dispatch extension-documentation-updated-event to Testably/Testably.Site
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.SITE_DISPATCH_TOKEN }}
repository: Testably/Testably.Site
event-type: extension-documentation-updated-event
client-payload: '{"source": "${{ github.repository }}", "sha": "${{ github.event.workflow_run.head_sha || github.sha }}"}'