Skip to content

Commit 9da93c4

Browse files
committed
update to retrigger the workflow
1 parent 648e6e6 commit 9da93c4

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.github/workflows/pr-playground-preview.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,36 @@ on:
1111
jobs:
1212
playground-preview:
1313
name: Update Playground Preview
14+
runs-on: ubuntu-latest
1415
permissions:
1516
contents: read
1617
pull-requests: write
1718
issues: write
18-
uses: adamziel/playground-preview/.github/workflows/playground-preview.yml@trunk
19-
with:
20-
preview-mode: "description"
21-
plugin-path: /
19+
steps:
20+
- name: Create Blueprint
21+
id: blueprint
22+
uses: actions/github-script@v7
23+
with:
24+
script: |
25+
const blueprint = {
26+
steps: [
27+
{
28+
step: "installPlugin",
29+
pluginData: {
30+
resource: "git:directory",
31+
url: `https://github.com/${context.repo.owner}/${context.repo.repo}.git`,
32+
ref: context.payload.pull_request.head.ref,
33+
path: "/"
34+
}
35+
}
36+
]
37+
};
38+
return JSON.stringify(blueprint);
39+
result-encoding: string
40+
- name: Playground Preview Button
41+
uses: adamziel/playground-preview/.github/workflows/playground-preview.yml@trunk
42+
with:
43+
preview-mode: "description"
44+
# plugin-path: /
45+
blueprint: ${{ steps.blueprint.outputs.result }}
46+

plugin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
} );
1515
/**/
1616
/**/
17+
/**/

0 commit comments

Comments
 (0)