Skip to content

update to retrigger the workflow #32

update to retrigger the workflow

update to retrigger the workflow #32

name: PR Playground Preview

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

View workflow run for this annotation

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

Invalid workflow file

reusable workflows should be referenced at the top-level `jobs.*.uses' key, not within steps
on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
jobs:
playground-preview:
name: Update Playground Preview
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
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
- name: Playground Preview Button
uses: adamziel/playground-preview/.github/workflows/playground-preview.yml@trunk
with:
preview-mode: "description"
# plugin-path: /
blueprint: ${{ steps.blueprint.outputs.result }}