Skip to content

Echo "hello world"

Echo "hello world" #37

name: PR Playground Preview
on:
pull_request:
types:
- opened
- synchronize
- reopened
- 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: adamziel/playground-preview/.github/workflows/playground-preview.yml@trunk
with:
preview-mode: "description"

Check failure on line 48 in .github/workflows/pr-playground-preview.yml

View workflow run for this annotation

GitHub Actions / PR Playground Preview

Invalid workflow file

The workflow is not valid. .github/workflows/pr-playground-preview.yml (Line: 48, Col: 21): Invalid input, preview-mode is not defined in the referenced workflow.
# plugin-path: /
blueprint: ${{ needs.create-blueprint.outputs.blueprint }}