Skip to content

Replace individual inputs with JSON string array of inputs #256

Replace individual inputs with JSON string array of inputs

Replace individual inputs with JSON string array of inputs #256

name: Deploy pr preview
on:
pull_request:
types:
- opened
- synchronize
- closed
paths:
- "docs/sources/**"
jobs:
deploy-pr-preview:
if: ${{ ! github.event.pull_request.head.repo.fork }}

Check failure on line 14 in .github/workflows/deploy-pr-preview.yml

View workflow run for this annotation

GitHub Actions / Deploy pr preview

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-pr-preview.yml (Line: 14, Col: 5): Required property is missing: runs-on
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
sparse-checkout-cone-mode: false # exclude root files
sparse-checkout: docs
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
repo: grafana/writers-toolkit
sparse-checkout-cone-mode: false # exclude root files
sparse-checkout: |
.github/workflows/deploy-preview.yml
- uses: ./.github/workflows/deploy-preview.yml
with:
branch: ${{ github.head_ref }}
event_number: ${{ github.event.number }}
sha: ${{ github.event.pull_request.head.sha }}
sources: |
[{
"index_file": null,
"relative_prefix": "/docs/writers-toolkit/",
"source_directory": "docs/sources",
"website_directory": "content/docs/writers-toolkit"
}]
title: ${{ github.event.pull_request.title }}