From d7fa40631634bc281a8e6d848dd97d9183eee165 Mon Sep 17 00:00:00 2001 From: Liv Dywan Date: Tue, 30 Apr 2024 13:52:02 +0200 Subject: [PATCH] Update preview example of the action - Use `branches` on `pull_request_target` - Mention limitations of the preview action See: https://progress.opensuse.org/issues/158236 --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a855f0..a92998f 100644 --- a/README.md +++ b/README.md @@ -54,12 +54,14 @@ jobs: ```yaml concurrency: preview-${{ github.ref }} on: - pull_request: + pull_request_target: types: - opened - reopened - synchronize - closed + branches: + - "**" permissions: contents: write pull-requests: write @@ -74,6 +76,12 @@ jobs: - uses: rossjrw/pr-preview-action@v1 ``` +> [!NOTE] +> [rossjrw/pr-preview-action](https://github.com/rossjrw/pr-preview-action) +> doesn't support forked repositories. +> Note the use of `pull_request_target` and `branches` as a +> work-around with the caveat that previews only show HTML changes. + ## License This project is licensed under the MIT license, see LICENSE file for details.