Skip to content

Commit

Permalink
chore(github/deploy_preview): try to fix github checks API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jbms committed Feb 22, 2024
1 parent 8bfa041 commit ff9f8a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const expires = new Date("${{ steps.deploy.outputs.expires }}");
const expires = new Date("${{ steps.deploy.outputs.expire_time }}");
const commitId = "${{ github.event.workflow_run.head_commit.id }}";
await github.rest.checks.create({
name: "client-preview",
owner: context.repo.owner,
repo: context.repo.repo,
head_sha: commitId,
status: "completed",
completed_at: `${(new Date()).toISOString()}`,
details_url: "${{ steps.deploy.outputs.details_url }}",
conclusion: "success",
title: `🔥 Preview created, expires at: ${expires.toISOString()}`,
Expand Down

0 comments on commit ff9f8a0

Please sign in to comment.