Skip to content

smoke: derive the phase-goal verdict from run data, not the run-id prefix #159

smoke: derive the phase-goal verdict from run data, not the run-id prefix

smoke: derive the phase-goal verdict from run data, not the run-id prefix #159

Workflow file for this run

name: PR preview
# Deploy each PR's docs/ to gh-pages:/pr-preview/pr-<number>/ and comment the
# preview URL on the PR. The preview is deleted when the PR closes.
# Runs on every PR (no paths filter): the close-time cleanup must always fire,
# and deploying an unchanged docs/ is harmless. PRs from forks are not
# previewed — their GITHUB_TOKEN is read-only.
on:
pull_request:
types: [opened, reopened, synchronize, closed]
concurrency: preview-${{ github.ref }}
permissions:
contents: write
pull-requests: write
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Cache-bust viewer assets
# Same script as deploy-pages.yml, so a preview stamps the same asset set
# a deploy does. Matters more here: the preview URL is constant across
# pushes to a PR, so without it a browser keeps serving the cached assets
# while you iterate. Harmless on the close event (nothing is deployed then).
run: .github/scripts/cache-bust.sh
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: docs