Skip to content

chore(deps): update actions/github-script action to v7 - autoclosed #3

chore(deps): update actions/github-script action to v7 - autoclosed

chore(deps): update actions/github-script action to v7 - autoclosed #3

Workflow file for this run

name: Capture Vercel preview URL
on:
issue_comment:
types: [edited]
jobs:
capture_vercel_preview_url:
name: Capture Vercel preview URL
runs-on: "ubuntu-latest"
steps:
- uses: aaimio/[email protected]
id: vercel_preview_url
with:
GITHUB_TOKEN: ${{ secrets.ACTION_GITHUB_TOKEN }}
# Below is but an example of what you could do with the preview URL.
# The preview URL is accessed through ${{ steps.<step_id>.outputs.vercel_preview_url }}
- uses: actions/github-script@v3
with:
github-token: ${{secrets.ACTION_GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'The preview URL is: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}/PikiLee.'
});