File tree Expand file tree Collapse file tree 2 files changed +30
-4
lines changed Expand file tree Collapse file tree 2 files changed +30
-4
lines changed Original file line number Diff line number Diff line change 1111jobs :
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+
Original file line number Diff line number Diff line change 1414} );
1515/**/
1616/**/
17+ /**/
You can’t perform that action at this time.
0 commit comments