Skip to content

Commit 4dadfc6

Browse files
Codexdmsnell
authored andcommitted
Update docs preview comment before smoke assertion
1 parent 131f28b commit 4dadfc6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/docs-playground-preview-publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,21 @@ jobs:
298298
exit 1
299299
fi
300300
301+
- name: Post diagnostic Playground preview comment
302+
if: env.SKIP != '1'
303+
uses: WordPress/action-wp-playground-pr-preview@c8607529dac8d2bf9a1e8493865fc97cd1c3c87b # v2
304+
with:
305+
mode: comment
306+
blueprint: ${{ steps.blueprint.outputs.blueprint-json }}
307+
pr-number: ${{ steps.meta.outputs.pr-number }}
308+
github-token: ${{ secrets.GITHUB_TOKEN }}
309+
comment-template: |
310+
### WordPress Playground Preview
311+
312+
A docs preview was generated for this pull request, but the docs smoke validation has not passed yet. Use this preview for manual inspection while the failing validation is investigated.
313+
314+
{{PLAYGROUND_BUTTON}}
315+
301316
- name: Assert docs preview smoke result
302317
if: env.SKIP != '1'
303318
shell: bash

0 commit comments

Comments
 (0)