Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
7b5f4e0
hello world
adamziel Nov 4, 2025
b958b7a
update workflow
adamziel Nov 4, 2025
75754b8
update workflow
adamziel Nov 4, 2025
1acf1c4
update to retrigger the workflow
adamziel Nov 4, 2025
abf60f9
update to retrigger the workflow
adamziel Nov 4, 2025
9f64662
update to retrigger the workflow
adamziel Nov 4, 2025
d9d8ad9
update to retrigger the workflow
adamziel Nov 4, 2025
d93c14c
update to retrigger the workflow
adamziel Nov 4, 2025
25adbb5
update to retrigger the workflow
adamziel Nov 5, 2025
2df5b1d
update to retrigger the workflow
adamziel Nov 5, 2025
598a92f
update to retrigger the workflow
adamziel Nov 5, 2025
7823954
update to retrigger the workflow
adamziel Nov 5, 2025
253da69
update to retrigger the workflow
adamziel Nov 5, 2025
54e2536
update to retrigger the workflow
adamziel Nov 5, 2025
828aff2
update to retrigger the workflow
adamziel Nov 5, 2025
3add248
update to retrigger the workflow
adamziel Nov 5, 2025
41589ac
update to retrigger the workflow
adamziel Nov 5, 2025
4fa7cda
update to retrigger the workflow
adamziel Nov 5, 2025
4dc73bd
update to retrigger the workflow
adamziel Nov 5, 2025
b1903db
update to retrigger the workflow
adamziel Nov 5, 2025
6521e41
update to retrigger the workflow
adamziel Nov 5, 2025
439857c
update to retrigger the workflow
adamziel Nov 5, 2025
4be1843
update to retrigger the workflow
adamziel Nov 5, 2025
c77daba
update to retrigger the workflow
adamziel Nov 5, 2025
0ddc36c
update to retrigger the workflow
adamziel Nov 5, 2025
e9a6657
update to retrigger the workflow
adamziel Nov 5, 2025
648e6e6
update to retrigger the workflow
adamziel Nov 5, 2025
9da93c4
update to retrigger the workflow
adamziel Nov 5, 2025
d3fc16a
update to retrigger the workflow
adamziel Nov 5, 2025
13a0f06
update to retrigger the workflow
adamziel Nov 5, 2025
6b45ead
update to retrigger the workflow
adamziel Nov 5, 2025
015a959
update to retrigger the workflow
adamziel Nov 5, 2025
9fc2877
update to retrigger the workflow
adamziel Nov 5, 2025
63501be
update to retrigger the workflow
adamziel Nov 5, 2025
11612f1
update to retrigger the workflow
adamziel Nov 5, 2025
9673bda
update to retrigger the workflow
adamziel Nov 6, 2025
9ec6635
update to retrigger the workflow
adamziel Nov 6, 2025
51d8a0d
update to retrigger the workflow
adamziel Nov 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 33 additions & 3 deletions .github/workflows/pr-playground-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,43 @@ on:
- edited

jobs:
create-blueprint:
name: Create Blueprint
runs-on: ubuntu-latest
outputs:
blueprint: ${{ steps.blueprint.outputs.result }}
steps:
- name: Create Blueprint
id: blueprint
uses: actions/github-script@v7
with:
script: |
const blueprint = {
steps: [
{
step: "installPlugin",
pluginData: {
resource: "git:directory",
url: `https://github.com/${context.repo.owner}/${context.repo.repo}.git`,
ref: context.payload.pull_request.head.ref,
path: "/"
}
}
]
};
return JSON.stringify(blueprint);
result-encoding: string

playground-preview:
name: Update Playground Preview
needs: create-blueprint
permissions:
contents: read
pull-requests: write
issues: write
uses: Automattic/preview-button/.github/workflows/playground-preview.yml@main
uses: adamziel/playground-preview/.github/workflows/playground-preview.yml@trunk
with:
preview-mode: comment
plugin-path: .
mode: "append-to-description"
# plugin-path: .
blueprint: ${{ needs.create-blueprint.outputs.blueprint }}

18 changes: 17 additions & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,21 @@
*/

add_action( 'init', function() {
// Simple initialization logic can go here.
} );

add_action( 'wp_head', function() {
echo '<script>console.log("hello world");</script>';
} );
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/
/**/