diff --git a/.github/workflows/pull-preview.yml b/.github/workflows/pull-preview.yml new file mode 100644 index 000000000..562eccf0c --- /dev/null +++ b/.github/workflows/pull-preview.yml @@ -0,0 +1,30 @@ +name: pull-preview + +on: + # zizmor: ignore[dangerous-triggers] - DO NOT add actions/checkout: the called workflow only reads PR metadata + pull_request_target: + branches: + - main + - 3.x + paths: + - 'docs/**' + types: + - opened + - reopened + - synchronize + - labeled + - unlabeled + - closed + +permissions: {} + +concurrency: + group: pull-preview-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + comment: + if: github.repository == 'nuxt/cli' + permissions: + pull-requests: write + uses: nuxt/nuxt.com/.github/workflows/pull-preview-comment.yml@main # zizmor: ignore[unpinned-uses] - nuxt.com owns the preview comment