Skip to content

Commit

Permalink
Merge pull request #49 from kalikiana/readme_preview_prtarget
Browse files Browse the repository at this point in the history
Update preview example of the action
  • Loading branch information
kalikiana authored May 2, 2024
2 parents 27fcb74 + d7fa406 commit 937000f
Showing 1 changed file with 9 additions and 1 deletion.
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.

0 comments on commit 937000f

Please sign in to comment.