From ec9651dd887297a099aad7656872d82e83303d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Thu, 9 Jul 2026 08:20:36 +0200 Subject: [PATCH] ci: notify Testably.Site to rebuild after a main build Add a notify-docs-site workflow that dispatches an extension-documentation-updated-event to Testably/Testably.Site once the Build workflow completes successfully on main, mirroring the existing setup in aweXpect and Mockolate. This lets a main build trigger a site rebuild, which previously did not happen for Awaiten. --- .github/workflows/notify-docs-site.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/notify-docs-site.yml 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 }}"}'