Skip to content

Commit

Permalink
chore: add test preview comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzianis Dashkevich committed Sep 20, 2024
1 parent 31ce2a2 commit e6e9827
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/preview-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: preview-comment

on:
pull_request:
types: [opened]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `> [!NOTE]
>
> URLs will be available only after Netlify deploy is completed
### Preview
https://deploy-preview-${context.issue.number}--videojsdev.netlify.app
### Api References
https://deploy-preview-${context.issue.number}--videojsdev.netlify.app/api-reference/dash-parser
https://deploy-preview-${context.issue.number}--videojsdev.netlify.app/api-reference/hls-parser
https://deploy-preview-${context.issue.number}--videojsdev.netlify.app/api-reference/playback
### Demo
https://deploy-preview-${context.issue.number}--videojsdev.netlify.app/demo/dash-parser
https://deploy-preview-${context.issue.number}--videojsdev.netlify.app/demo/hls-parser
https://deploy-preview-${context.issue.number}--videojsdev.netlify.app/demo/playback`
})
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ TBD

# Important Links

- @videojs/dash-parser
- `@videojs/dash-parser`
- API Reference: https://videojsdev.netlify.app/api-reference/dash-parser
- Demo: https://videojsdev.netlify.app/demo/dash-parser
- @videojs/hls-parser
- `@videojs/hls-parser`
- API Reference: https://videojsdev.netlify.app/api-reference/hls-parser
- Demo: https://videojsdev.netlify.app/demo/hls-parser
- @videojs/playback
- `@videojs/playback`
- API Reference: https://videojsdev.netlify.app/api-reference/playback
- Demo: https://videojsdev.netlify.app/demo/playback

Expand Down

0 comments on commit e6e9827

Please sign in to comment.