From f302b5a5a81bc032967c9085a4f0d8cc8247356d Mon Sep 17 00:00:00 2001 From: Erin Cochran Date: Tue, 22 Sep 2026 16:48:54 -0400 Subject: [PATCH] Rewrite doc trigger --- .github/workflows/notify-docs.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/notify-docs.yml b/.github/workflows/notify-docs.yml index 316b3c9..9ab7494 100644 --- a/.github/workflows/notify-docs.yml +++ b/.github/workflows/notify-docs.yml @@ -2,26 +2,19 @@ name: Notify Docs on Changes on: # Release-only: the receiver diffs previous tag..this tag, so one dispatch per - # release carries every change since the last one. Pushes to main are - # deliberately not a trigger — they produced a docs PR per merge. + # release carries every change since the last one. release: types: [published] jobs: notify: + if: '!github.event.release.prerelease' runs-on: ubuntu-latest steps: - - name: Trigger mintlify-omni docs sync + - name: Trigger mintlify-omni docs generation uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.DOCS_REPO_TOKEN }} repository: exploreomni/mintlify-omni - event-type: cli-docs-update - client-payload: >- - { - "source": "cli", - "trigger": "${{ github.event_name == 'release' && 'release' || 'push' }}", - "release_tag": "${{ github.event.release.tag_name || '' }}", - "commit_sha": "${{ github.sha }}", - "before_sha": "${{ github.event.before || '' }}" - } + event-type: generate-docs + client-payload: '{"source": "cli", "release_tag": ${{ toJSON(github.event.release.tag_name) }}}'