Skip to content

Commit

Permalink
chore: use marocchino action for test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aaimio committed May 4, 2023
1 parent 7b277ef commit b82a318
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,16 @@ jobs:
capture_vercel_preview_url:
name: Capture Vercel preview URL
runs-on: "ubuntu-latest"
permissions:
pull-requests: write
steps:
- uses: aaimio/vercel-preview-url-action@main
id: vercel_preview_url
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Below is merely 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@v6
- uses: marocchino/sticky-pull-request-comment@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.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 }}.'
});
message: |
The preview URL is: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}.

0 comments on commit b82a318

Please sign in to comment.