https://github.com/pavi2410/html-preview-action
GitHub action to preview HTML page
https://github.com/pavi2410/html-preview-action
github-actions html html-preview preview
Last synced: 3 months ago
JSON representation
GitHub action to preview HTML page
- Host: GitHub
- URL: https://github.com/pavi2410/html-preview-action
- Owner: pavi2410
- License: mit
- Created: 2020-03-07T13:25:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-29T21:16:18.000Z (10 months ago)
- Last Synced: 2025-04-12T12:12:09.411Z (3 months ago)
- Topics: github-actions, html, html-preview, preview
- Language: JavaScript
- Homepage:
- Size: 489 KB
- Stars: 38
- Watchers: 2
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTML Preview Action
This is a simple Github Action which comments on your PRs with a link to preview HTML files directly in the browser.
This is just a novelty action, but feel free to use it. If you'd like to contribute then just open a PR.
## Usage
```yaml
- name: HTML Preview
id: html_preview
uses: pavi2410/html-preview-action@v4
with:
html_file: 'index.html'
job_summary: true
```To get the `url` output, use this `steps.html_preview.outputs.url` in your later steps.
> [!note]
> Please read the [action.yml](https://github.com/pavi2410/html-preview-action/blob/master/action.yml) to learn more.## Credits
https://github.com/htmlpreview/htmlpreview.github.com