fix: disable Renovate updates for sync-generated examples #2896
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. | |
| # No base-branch filter: collective targets (e.g. simplify-docs) must get previews too. | |
| # Spam control is the `preview` label (triage+), not the base ref. | |
| pull_request_target: | |
| types: [opened, synchronize, ready_for_review] | |
| 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 | |
| # or which branch the PR targets. | |
| # 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') | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| id-token: write | |
| uses: ./.github/workflows/preview-www-reusable.yml | |
| secrets: inherit |