Skip to content

feat(www): Colin McDonnell “Cool project btw!” hero endorsement #1528

feat(www): Colin McDonnell “Cool project btw!” hero endorsement

feat(www): Colin McDonnell “Cool project btw!” hero endorsement #1528

name: Preview www (Default Events)
on:
# pull_request_target so fork PRs receive repository secrets (VERCEL_*).
# Workflow YAML is taken from the base branch; we checkout PR HEAD in the reusable job.
pull_request_target:
types: [opened, synchronize, ready_for_review]
branches:
- dev
- v1
push:
branches:
- dev
- v1
concurrency:
group: preview-www-${{ github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
jobs:
Deploy-Preview:
# Branch previews (push to dev/v1) always deploy. PR previews are opt-in:
# they only deploy when the PR carries the `preview` label, regardless of draft state.
# Fork authors cannot apply labels (triage+ required), so this is not self-serve spamable.
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'preview')
uses: ./.github/workflows/preview-www-reusable.yml
secrets: inherit