diff --git a/.github/workflows/notify-docs-site.yml b/.github/workflows/notify-docs-site.yml new file mode 100644 index 0000000..d9b3758 --- /dev/null +++ b/.github/workflows/notify-docs-site.yml @@ -0,0 +1,22 @@ +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@v4 + 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 }}"}'