Skip to content

Commit

Permalink
Update Deploy Preview.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rLukoyanov authored Aug 7, 2024
1 parent 6b23b8f commit e40f203
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/Deploy Preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ jobs:

- name: Comment on Pull Request
uses: actions/github-script@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
script: |
github.issues.createComment({
issue_number: context.issue.number,
const { DEPLOY_URL } = process.env;
const issue_number = context.payload.pull_request.number;
github.rest.issues.createComment({
issue_number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Deployed to Vercel: ${process.env.DEPLOY_URL}`
})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
body: `Deployed to Vercel: ${DEPLOY_URL}`
});

0 comments on commit e40f203

Please sign in to comment.