chore(deps): bump @docsearch/react from 3.5.0 to 3.5.1 #606
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Demo link | |
on: | |
pull_request_target: | |
types: [opened] | |
jobs: | |
add_demo_link: | |
name: Add demo link to PR description | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Update PR description | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const pullRequestId = context.payload.pull_request.number | |
const pullRequestBranch = context.payload.pull_request.head.ref | |
github.rest.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: pullRequestId, | |
body: `👀 [Visit Preview](https://${pullRequestBranch}--welcome-ui.netlify.app)` | |
}); |