debug(ci): console log deployment ID in deploy script

This commit is contained in:
Rickard Andersson 2023-08-25 12:27:50 +03:00
parent 670bb8dc03
commit 8d94c1b0f2

View File

@ -105,10 +105,12 @@ jobs:
script: |
const fs = require('fs');
const deploymentUrl = fs.readFileSync('_vercel-deployment-url', 'utf8');
const deploymentId = ${{ steps.vercel-deployment.outputs.deployment_id }};
console.log('deploymentId', deploymentId);
await github.rest.repos.createDeploymentStatus({
owner: context.repo.owner,
repo: context.repo.repo,
deployment_id: ${{ steps.vercel-deployment.outputs.deployment_id }},
deployment_id: deploymentId,
state: 'success',
environment_url: deploymentUrl,
log_url: deploymentUrl,