Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update preview example of the action #49

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Loading