feat(www): Colin McDonnell “Cool project btw!” hero endorsement #1524
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |