From 8fd05eecff4be1dfc6914c54202999b69f51445d Mon Sep 17 00:00:00 2001 From: "S. Elliott Johnson" Date: Mon, 25 Aug 2025 12:53:57 -0600 Subject: [PATCH] chore: Add notification for no docs changed --- .github/workflows/docs-preview-create.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/docs-preview-create.yml b/.github/workflows/docs-preview-create.yml index cc1e1e2c7a..8fba110a21 100644 --- a/.github/workflows/docs-preview-create.yml +++ b/.github/workflows/docs-preview-create.yml @@ -66,9 +66,11 @@ jobs: - name: Push id: push + continue-on-error: true run: git add -A && git commit -m "sync docs for repo ${{ inputs.repo }}, pr ${{ inputs.pr }}, commit ${{ inputs.sha }}" && git push -u origin ${{ env.BRANCH }} --force - name: Request preview comment + if: ${{ steps.push.outcome == 'success' }} uses: peter-evans/repository-dispatch@v3 with: event-type: 'request-preview-comment' @@ -77,3 +79,15 @@ jobs: "repo": "${{ inputs.repo }}", "pr": "${{ inputs.pr }}" } + + - name: Dispatch docs-unaffected + if: ${{ steps.push.outcome != 'success' }} + uses: peter-evans/repository-dispatch@v3 + with: + event-type: 'docs-unaffected' + client-payload: |- + { + "repo": "${{ inputs.repo }}", + "pr": "${{ inputs.pr }}", + "sha": "${{ inputs.sha }}" + }