fix(deps): update dependency framer-motion to ^11.3.30 #476
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: 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.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@v7 | |
with: | |
script: | | |
const previewURL = "${{ steps.vercel_preview_url.outputs.vercel_preview_url }}".match(/https:\/\/vercel\.live\/open-feedback\/(.+.vercel.app).*/)[1]; | |
if (previewURL) { | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `The preview URL are: | |
1. https://${previewURL}/v2/username/PikiLee | |
2. https://${previewURL}/v2/username/PikiLee?tone=yellow&include=name,avatar,daysOnGithubText | |
Please visit the URL to review the changes.` | |
}); | |
} |