Skip to content

chore: print netlify preview url #2

chore: print netlify preview url

chore: print netlify preview url #2

Workflow file for this run

name: Preview comment
on:
pull_request:
types:
- opened
paths-ignore:
- 'README.md'
permissions:
pull-requests: write
jobs:
preview-deploy:
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: 'This pull request is being automatically deployed to Netlify.\n\n✅ Preview: https://preview-${{ github.event.number }}--webhookx.netlify.app'
})