Bump @cypress/request and cypress #16
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: Comment preview environment URL | |
on: | |
pull_request: | |
types: | |
- opened | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
comment: | |
name: Comment preview environment URL | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@v6 | |
with: | |
script: | | |
const prod = `https://${context.payload.pull_request.number}-prod.traq-preview.trapti.tech/` | |
const dev = `https://${context.payload.pull_request.number}-dev.traq-preview.trapti.tech/` | |
const msg = ` | |
Preview (prod) → ${prod} | |
Preview (dev) → ${dev} | |
` | |
await github.rest.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: context.payload.pull_request.number, | |
body: msg | |
}); |