Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek committed Jan 22, 2025
1 parent ace5183 commit 21b8de7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
result-encoding: string
retries: 3
script: |
const deployment = await github.rest.repos.createDeployment({
const response.data = await github.rest.repos.createDeployment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
Expand All @@ -35,17 +35,15 @@ jobs:
description: `Preview deployment for PR ${context.issue.number}`,
})
console.log(deployment)
await github.rest.repos.createDeploymentStatus({
deployment_id: deployment.id,
deployment_id: response.data.id,
owner: context.repo.owner,
repo: context.repo.repo,
state: "in_progress",
description: "Deployment created",
})
return { deploymentId: deployment.id }
return { deploymentId: response.data.id }

# - name: Delete a comment if exists
Expand Down

0 comments on commit 21b8de7

Please sign in to comment.